- schedule = get_active_schedule(request.user)
- if schedule is not None:
- return HttpResponseRedirect(schedule.get_absolute_url())
- else:
- return super(JoinView, self).get(request)
-
- def get_form_kwargs(self):
- kwargs = super().get_form_kwargs()
- kwargs['request'] = self.request
- return kwargs
-
- def get_context_data(self, form=None):
- c = super(JoinView, self).get_context_data()
+ #schedule = get_active_schedule(request.user)
+ #if schedule is not None:
+ # return HttpResponseRedirect(schedule.get_absolute_url())
+ #else:
+ return super(JoinView, self).get(request)
+
+ def get_context_data(self, **kwargs):
+ c = super(JoinView, self).get_context_data(**kwargs)