diff --git a/apps/tag/models.py b/apps/tag/models.py index 28ff1183..a3acbc8e 100644 --- a/apps/tag/models.py +++ b/apps/tag/models.py @@ -159,7 +159,7 @@ class TagCategory(models.Model): @property def label_indexing(self): base_dict = self.translation.text if self.translation and isinstance(self.translation.text, dict) else {} - dict_to_index = {locale: base_dict.get(locale) for locale in OBJECT_FIELD_PROPERTIES} + dict_to_index = {locale: base_dict.get(locale) for locale in OBJECT_FIELD_PROPERTIES.keys()} return AttrDict(dict_to_index) objects = TagCategoryQuerySet.as_manager()