Ticket #6813: login_with_post_data.diff
File login_with_post_data.diff, 1.0 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) 117 116 response = self.login(request) 117 if response: 118 return response 119 # with post data in session, continue 118 120 119 121 if url == '': 120 122 return self.index(request) … … 245 247 # overwrite request.POST with the saved post_data, and continue 246 248 request.POST = post_data 247 249 request.user = user 248 return view_func(request, *args, **kwargs)250 return None 249 251 else: 250 252 request.session.delete_test_cookie() 251 253 return http.HttpResponseRedirect(request.path)