fix sort
This commit is contained in:
parent
fc4b59a084
commit
eac3c4c44b
1 changed files with 3 additions and 1 deletions
|
@ -594,6 +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):
|
||||||
|
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':
|
||||||
|
|
Loading…
Reference in a new issue