mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-12 13:46:05 +00:00
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:
1 parent
cfd4955672
commit
a0e39b8904
5 files changed
+202
-121
No files matched your search
@@ -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 *
|
||||
|
||||
Reference in new issue
Block a user