Ticket #4015: request_user.diff
File request_user.diff, 686 bytes (added by , 18 years ago) |
---|
-
django/contrib/auth/__init__.py
53 53 user.save() 54 54 request.session[SESSION_KEY] = user.id 55 55 request.session[BACKEND_SESSION_KEY] = user.backend 56 request.user = user 56 57 57 58 def logout(request): 58 59 """ … … 66 67 del request.session[BACKEND_SESSION_KEY] 67 68 except KeyError: 68 69 pass 70 from django.contrib.auth.models import AnonymousUser 71 request.user = AnonymousUser() 69 72 70 73 def get_user(request): 71 74 from django.contrib.auth.models import AnonymousUser