clubs: rewrite MailingForm to include everything in one place

Everything is handled on the same view, no more redirection hacks

Remove get_context_data in DetailFormView since it's already done by django
This commit is contained in:
klmp200 committed 2019-05-01 15:49:30 +02:00
1 parent cfd4955672
commit a0e39b8904
5 files changed
+202 -121

No files matched your search

-5
View File
@@ -296,11 +296,6 @@ class DetailFormView(SingleObjectMixin, FormView):
"""
return super(DetailFormView, self).get_object()
def get_context_data(self, *args, **kwargs):
kwargs = super(DetailFormView, self).get_context_data()
kwargs["object"] = self.get_object()
return kwargs
from .user import *
from .page import *