Django 1.0 support.

see #1024
This commit is contained in:
Antoine Nguyen
2017-02-10 14:29:21 +01:00
parent 27d364a046
commit 01f926ca95
18 changed files with 134 additions and 132 deletions
+5 -3
View File
@@ -168,13 +168,15 @@ class User(PermissionsMixin):
def natural_key(self):
return (self.get_username(),)
@property
def is_anonymous(self):
"""
Always returns False. This is a way of comparing User objects to
anonymous users.
"""Always returns False.
This is a way of comparing User objects to anonymous users.
"""
return False
@property
def is_authenticated(self):
"""
Always return True. This is a way to tell if the user has been