pass type

This commit is contained in:
j 2014-12-16 16:45:35 +00:00
parent 901bd37e90
commit 50fcb08a86

View file

@ -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: