summaryrefslogtreecommitdiff
path: root/app/photos
diff options
context:
space:
mode:
Diffstat (limited to 'app/photos')
-rw-r--r--app/photos/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/photos/forms.py b/app/photos/forms.py
index 97359e0..6ee7bde 100644
--- a/app/photos/forms.py
+++ b/app/photos/forms.py
@@ -34,7 +34,7 @@ class GalleryForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(GalleryForm, self).__init__(*args, **kwargs)
- self.fields['images'].choices = [(image.id, mark_safe('%sqq%sqq%s' % (image.title, image.get_image_by_size('tn'), image.pk))) for image in LuxImage.objects.all()]
+ self.fields['images'].choices = [(image.id, mark_safe('%sqq%sqq%s' % (image.title, image.get_image_by_size('tn'), image.pk))) for image in LuxImage.objects.all()[:40]]
self.fields['images'].allow_tags = True