fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
css fix
[wolnelektury.git]
/
src
/
club
/
views.py
diff --git
a/src/club/views.py
b/src/club/views.py
index
e93864c
..
6a5c7d7
100644
(file)
--- a/
src/club/views.py
+++ b/
src/club/views.py
@@
-60,6
+60,11
@@
class JoinView(CreateView):
'email': self.request.user.email,
}
'email': self.request.user.email,
}
+ def get_form_kwargs(self):
+ kwargs = super().get_form_kwargs()
+ kwargs['referer'] = self.request.META.get('HTTP_REFERER', '')
+ return kwargs
+
def form_valid(self, form):
retval = super(JoinView, self).form_valid(form)
if self.request.user.is_authenticated:
def form_valid(self, form):
retval = super(JoinView, self).form_valid(form)
if self.request.user.is_authenticated: