--- a/src/core/models/notice.py Fri Jun 28 18:16:58 2013 +0200
+++ b/src/core/models/notice.py Mon Jul 01 17:11:44 2013 +0200
@@ -91,6 +91,16 @@
util = models.CharField(max_length=1024, null=True, blank=True)
video = models.CharField(max_length=2048, null=True, blank=True)
www = models.CharField(max_length=512, null=True, blank=True)
+
+ def thumbnails(): #@NoSelf
+ doc = """Docstring""" #@UnusedVariable
+
+ def fget(self):
+ return [img for img in self.images.all() if img.url.split('.')[-2].endswith("_v")]
+
+ return locals()
+
+ thumbnails = property(**thumbnails())
class Meta:
app_label = 'core'