summaryrefslogtreecommitdiff
path: root/app/photos/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/photos/forms.py')
-rw-r--r--app/photos/forms.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/photos/forms.py b/app/photos/forms.py
index 8ad89f2..03c6f09 100644
--- a/app/photos/forms.py
+++ b/app/photos/forms.py
@@ -39,8 +39,11 @@ class GalleryForm(forms.ModelForm):
items = []
for image in images:
items.append(
- (image.pk, mark_safe('%sqq%s' % (image.title, image.get_image_name())))
+ (image.pk, mark_safe('%sqq%sqq%s' % (image.title, image.get_image_by_size('tn'), image.pk)))
)
+
+
+
self.fields['images'].choices = items
self.fields['images'].allow_tags = True