forked from 0x2620/pandora
fix sort
This commit is contained in:
parent
fc4b59a084
commit
eac3c4c44b
1 changed files with 3 additions and 1 deletions
|
@ -593,7 +593,9 @@ class Item(models.Model):
|
|||
if 'layer' in key['value']:
|
||||
continue
|
||||
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 sort_type == 'title':
|
||||
|
|
Loading…
Reference in a new issue