fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Necessary rounding.
[wolnelektury.git]
/
src
/
funding
/
views.py
diff --git
a/src/funding/views.py
b/src/funding/views.py
index
18000c0
..
74530a4
100644
(file)
--- 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)
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:
if self.request.method == 'POST':
return form_class(self.object, self.request.POST)
else: