really fix sort

This commit is contained in:
j 2011-10-25 09:31:26 +02:00
parent eac3c4c44b
commit 38abce6033

View file

@ -594,8 +594,8 @@ class Item(models.Model):
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): if isinstance(sort_type, list):
sort_type = sort_type[0] 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':