summaryrefslogtreecommitdiff
path: root/chimere/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-12-10 13:46:45 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2014-12-10 13:46:45 +0100
commit263b6893dd69c4d377ca369a05ebb0eb2072153c (patch)
tree7f39321070ebf8c762cbd8a9b1437d511a2d3d26 /chimere/models.py
parentf5cdf20fd3c33905d1b97fa93a635abc5e7d4d14 (diff)
downloadChimère-263b6893dd69c4d377ca369a05ebb0eb2072153c.tar.bz2
Chimère-263b6893dd69c4d377ca369a05ebb0eb2072153c.zip
Add icon of search results
Diffstat (limited to 'chimere/models.py')
-rw-r--r--chimere/models.py2
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]