示例#1
0
 def render_to_response(self, context, **response_kwargs):
     forms = dict(signup_form=edmuser.forms.SignupForm, login_form=self.get_form(self.get_form_class()))
     context = dict(context.items() + forms.items())
     return super(LoginView, self).render_to_response(context, **response_kwargs)
示例#2
0
 def render_to_response(self, context, **response_kwargs):
     forms = dict(signup_form=self.get_form(self.get_form_class()), login_form=LoginUsernameForm)
     context = dict(context.items() + forms.items())
     return super(SignUpView, self).render_to_response(context, **response_kwargs)