summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-11-09 14:28:03 -0800
committerluxagraf <sng@luxagraf.net>2017-11-09 14:28:03 -0800
commit4664f2d30e11988bbbfe06c4acb93c2d2b9c7261 (patch)
tree94ac31325254e4a5423e6601f844f63d3bd1b9dd /app
parentd42759bdcd6861039835f47153b621545bed334e (diff)
changed photo widget to limit number of images to something sane
Diffstat (limited to 'app')
-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