From 50fcb08a8649e84a23be1354c253959e42f451ac Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 16 Dec 2014 16:45:35 +0000 Subject: [PATCH] pass type --- pandora/entity/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/entity/models.py b/pandora/entity/models.py index 527f7790..c9168680 100644 --- a/pandora/entity/models.py +++ b/pandora/entity/models.py @@ -44,7 +44,7 @@ class Entity(models.Model): 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: self.name_sort = get_name_sort(self.name)[:255].lower() else: