X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3c949ed2b4a7050c69b68fe2d27aaf4df4ed88a8..a169ba7caa0d9d83fddcbad5ed05f536e0ca1b9e:/src/funding/views.py?ds=sidebyside diff --git a/src/funding/views.py b/src/funding/views.py index 18000c05d..74530a4af 100644 --- a/src/funding/views.py +++ b/src/funding/views.py @@ -88,7 +88,9 @@ class OfferDetailView(FormView): raise Http404 return super(OfferDetailView, self).dispatch(request, slug) - def get_form(self, form_class): + def get_form(self, form_class=None): + if form_class is None: + form_class = self.get_form_class() if self.request.method == 'POST': return form_class(self.object, self.request.POST) else: