Skip to content

Commit

Permalink
Reuse AbstractBaseUser functions correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
erezarnon committed Sep 20, 2016
1 parent 7b2c055 commit b68022b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_mongoengine/mongo_auth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def make_password(raw_password):

class BaseUser(object):

is_anonymous = AbstractBaseUser.is_anonymous
is_authenticated = AbstractBaseUser.is_authenticated
is_anonymous = AbstractBaseUser.__dict__['is_anonymous']
is_authenticated = AbstractBaseUser.__dict__['is_authenticated']


class ContentType(document.Document):
Expand Down

0 comments on commit b68022b

Please sign in to comment.