Skip to content

Commit

Permalink
django.core.context_processors.auth assumes that an object attached t…
Browse files Browse the repository at this point in the history
…o request.user is always a django.contrib.auth.models.User, which is completely broken but easy to work around.
  • Loading branch information
rcrowley committed Apr 27, 2009
1 parent 6c12b64 commit 83ba6a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ def validate(self):
self.email):
errors += ['email']
return errors

# django.core.context_processors.auth assumes that an object attached
# to request.user is always a django.contrib.auth.models.User, which
# is completely broken but easy to work around
def get_and_delete_messages(self): pass

0 comments on commit 83ba6a0

Please sign in to comment.