+
+
+class CustomPDFFormView(AjaxableFormView):
+ form_class = forms.CustomPDFForm
+ title = _('Download custom PDF')
+ submit = _('Download')
+
+ def __call__(self, request):
+ from copy import copy
+ if request.method == 'POST':
+ request.GET = copy(request.GET)
+ request.GET['next'] = "%s?%s" % (reverse('catalogue.views.download_custom_pdf', args=[request.GET['slug']]),
+ request.POST.urlencode())
+ return super(CustomPDFFormView, self).__call__(request)
+
+
+ def success(self, *args):
+ pass