dont overwrite default itemkey properties

This commit is contained in:
j 2013-03-03 11:28:28 +00:00
parent 2802b6b691
commit c2dfb6f2e4

View file

@ -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)