diff options
Diffstat (limited to 'chimere/models.py')
-rw-r--r-- | chimere/models.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chimere/models.py b/chimere/models.py index 30c3be0..1598f38 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -334,8 +334,8 @@ class SubCategory(models.Model): if area.subcategories.count(): sub_ids = [sub.id for sub in area.subcategories.all()] subcategories = subcategories.filter(id__in=sub_ids) - selected_cats = [subcat.pk - for subcat in area.default_subcategories.all()] + selected_cats = [ + subcat.pk for subcat in area.default_subcategories.all()] if instance: return subcategories.order_by('order') @@ -624,7 +624,6 @@ class GeographicItem(models.Model): # add read attributes for properties for pm in self.all_properties(): attr_name = pm.getAttrName() - print(attr_name) if not hasattr(self, attr_name): val = '' property = self.getProperty(pm) |