|
@@ -21,7 +21,7 @@ class CreateImage(JSONResponseMixin, LoginRequiredMixin, CreateView): |
|
|
def get(self, request, *args, **kwargs): |
|
|
def get(self, request, *args, **kwargs): |
|
|
if not request.is_ajax(): |
|
|
if not request.is_ajax(): |
|
|
return HttpResponseRedirect(reverse('core:recent-pins')) |
|
|
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): |
|
|
def form_valid(self, form): |
|
|
image = form.save() |
|
|
image = form.save() |
|
|