From: Guillaume Pellerin Date: Tue, 31 Dec 2013 00:14:44 +0000 (+0100) Subject: fix redir X-Git-Tag: 2.8.1-pro~346 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=404b6a471cce262373dac479928e44a8e43ed67c;p=teleforma.git fix redir --- diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 2129a668..70788719 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -166,7 +166,8 @@ class AnswerView(SeminarAccessMixin, FormView): return User.objects.get(id=user_id) def get_initial(self): - initial = {} + initial = super(AnswerView, self).get_initial() + if not self.request.user.is_authenticated: return initial