summaryrefslogtreecommitdiff
path: root/chimere/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/models.py')
-rw-r--r--chimere/models.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/chimere/models.py b/chimere/models.py
index 03c54a8..b367f8c 100644
--- a/chimere/models.py
+++ b/chimere/models.py
@@ -256,10 +256,8 @@ class Marker(GeographicItem):
return [item for order, item in sorted(items)]
@property
- def default_picture(self):
- pict = self.pictures.filter(miniature=True)
- if pict.count():
- return pict.all()[0]
+ def default_pictures(self):
+ return list(self.pictures.filter(miniature=True))
@property
def date(self):