forked from 0x2620/pandora
dont overwrite default itemkey properties
This commit is contained in:
parent
2802b6b691
commit
c2dfb6f2e4
1 changed files with 2 additions and 1 deletions
|
@ -1406,6 +1406,7 @@ for key in filter(lambda k: k.get('sort', False) or k['type'] in ('integer', 'ti
|
||||||
'time': 'integer',
|
'time': 'integer',
|
||||||
'enum': 'integer',
|
'enum': 'integer',
|
||||||
}.get(sort_type, sort_type)]
|
}.get(sort_type, sort_type)]
|
||||||
|
if name not in attrs:
|
||||||
attrs[name] = model[0](**model[1])
|
attrs[name] = model[0](**model[1])
|
||||||
|
|
||||||
ItemSort = type('ItemSort', (models.Model,), attrs)
|
ItemSort = type('ItemSort', (models.Model,), attrs)
|
||||||
|
|
Loading…
Reference in a new issue