diff options
author | luxagraf <sng@luxagraf.net> | 2015-12-15 13:15:55 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-12-15 13:15:55 -0500 |
commit | f421ae2ec6ddbdd2ec902f91dfc20c74dccb8a6e (patch) | |
tree | c8d78d25c0d3d5820ce6f29e00dfcad52801e93f | |
parent | d857af060e2b92b7e5b994cd2ba563491b203290 (diff) |
added thumbnail to admin for photos
-rw-r--r-- | app/photos/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/photos/models.py b/app/photos/models.py index f0d5540..a445f73 100644 --- a/app/photos/models.py +++ b/app/photos/models.py @@ -53,7 +53,7 @@ class LuxImage(models.Model): return "%sgalleries/%s/%s" % (settings.IMAGES_URL, size, base) def admin_thumbnail(self): - return force_text('<a href="%s"><img src="%s"></a>' % (self.image.url, self.image.url)) + return force_text('<a href="%s"><img src="%s"></a>' % (self.get_image_size(), self.get_image_size("thumb"))) admin_thumbnail.allow_tags = True admin_thumbnail.short_description = 'Thumbnail' |