Пример #1
0
 def __call__(self, request):
     login_form = login.login_form(request, came_from=request.url)
     return {'errors': self.errors, 'login_form': login_form}
Пример #2
0
 def html(self, request, registration_form=None):
     form = login.login_form(request, came_from=request.url)
     if registration_form == None:
         registration_form = make_registration_form(request)
     return {'form': form, 'request':request, 'registration_form':registration_form}