Ticket #6656: error2.diff
File error2.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/contrib/admin/sites.py
113 113 return self.logout(request) 114 114 115 115 if not self.has_permission(request): 116 return self.login(request )116 return self.login(request, url) 117 117 118 118 119 119 if url == '': … … 197 197 from django.contrib.auth.views import logout 198 198 return logout(request) 199 199 200 def login(self, request ):200 def login(self, request, url): 201 201 """ 202 202 Displays the login form for the given HttpRequest. 203 203 """ … … 245 245 # overwrite request.POST with the saved post_data, and continue 246 246 request.POST = post_data 247 247 request.user = user 248 return view_func(request, *args, **kwargs)248 return self.root(request, url) 249 249 else: 250 250 request.session.delete_test_cookie() 251 251 return http.HttpResponseRedirect(request.path)