This commit is contained in:
j 2011-10-25 09:29:41 +02:00
parent fc4b59a084
commit eac3c4c44b

View file

@ -593,7 +593,9 @@ class Item(models.Model):
if 'layer' in key['value']: if 'layer' in key['value']:
continue continue
source = key['value']['key'] source = key['value']['key']
sort_type = key['value'].get('type', sort_type) sort_type = key['value'].get('type', sort_type)
if isinstance(sort_type, list):
sort_type = sort_type[0]
if name not in base_keys: if name not in base_keys:
if sort_type == 'title': if sort_type == 'title':