forked from 0x2620/pandora
pass type
This commit is contained in:
parent
901bd37e90
commit
50fcb08a86
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Entity(models.Model):
|
||||||
|
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
entity = get_by_id(settings.CONFIG['entities'])
|
entity = get_by_id(settings.CONFIG['entities'], self.type)
|
||||||
if entity.get('sortType') == 'person' and self.name:
|
if entity.get('sortType') == 'person' and self.name:
|
||||||
self.name_sort = get_name_sort(self.name)[:255].lower()
|
self.name_sort = get_name_sort(self.name)[:255].lower()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue