[FIX] fields: add a type to field Id; this fixes #990
This commit is contained in:
parent
e9fae40faf
commit
3fdc232352
|
@ -1542,6 +1542,9 @@ class Id(Field):
|
|||
store = True
|
||||
readonly = True
|
||||
|
||||
def __init__(self, string=None, **kwargs):
|
||||
super(Id, self).__init__(type='integer', string=string, **kwargs)
|
||||
|
||||
def to_column(self):
|
||||
return fields.integer('ID')
|
||||
|
||||
|
|
Loading…
Reference in New Issue