diff options
Diffstat (limited to 'chimere/models.py')
-rw-r--r-- | chimere/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chimere/models.py b/chimere/models.py index 09987c9..3dae073 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -656,7 +656,7 @@ class Marker(GeographicItem): def default_category(self): # Should we select only available ones ? # Should we catch if not exists ? - cats = self.categories + cats = self.categories.filter(available=True, category__available=True) if cats.count(): return cats.all()[0] |