From 25c02407baab60dcfc4c55d9190684b45362e574 Mon Sep 17 00:00:00 2001 From: Tomasz Wysocki Date: Thu, 3 Apr 2014 10:09:11 +0200 Subject: [PATCH] "keys" is optional. --- pinry/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinry/core/views.py b/pinry/core/views.py index 8192705..1684c6b 100644 --- a/pinry/core/views.py +++ b/pinry/core/views.py @@ -22,7 +22,7 @@ class CreateImage(JSONResponseMixin, LoginRequiredMixin, CreateView): def form_valid(self, form): image = form.save() - for size in settings.IMAGE_SIZES.keys(): + for size in settings.IMAGE_SIZES: Thumbnail.objects.get_or_create_at_size(image.pk, size) return self.render_json_response({ 'success': {