From fbfd7e02395c23c5bf4a5a7717f036077b34a016 Mon Sep 17 00:00:00 2001 From: Krzysztof Klimonda Date: Sun, 3 Mar 2013 10:08:26 -0800 Subject: [PATCH] CreateImage.get should always return HttpResponse --- 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 722f96e..4f1af64 100644 --- a/pinry/core/views.py +++ b/pinry/core/views.py @@ -21,7 +21,7 @@ class CreateImage(JSONResponseMixin, LoginRequiredMixin, CreateView): def get(self, request, *args, **kwargs): if not request.is_ajax(): return HttpResponseRedirect(reverse('core:recent-pins')) - super(CreateImage, self).get(request, *args, **kwargs) + return super(CreateImage, self).get(request, *args, **kwargs) def form_valid(self, form): image = form.save()