Skip to content

Commit

Permalink
Merge pull request scholrly#217 from tonjo/master
Browse files Browse the repository at this point in the history
Backend fix User model (avoid from_model trick)
  • Loading branch information
mhluongo committed Nov 6, 2013
2 parents b2d8c75 + 9058c0b commit 1e030d2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions neo4django/graph_auth/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class NodeModelBackend(object):
supports_inactive_user = False

def authenticate(self, username=None, password=None):
UserModel = get_user_model()
try:
user = UserModel.objects.get(username=username)
if user is not None and user.check_password(password):
Expand All @@ -22,7 +21,6 @@ def authenticate(self, username=None, password=None):
pass

def get_user(self, user_id):
UserModel = get_user_model()
try:
return UserModel.objects.get(id=user_id)
except UserModel.DoesNotExist:
Expand Down

0 comments on commit 1e030d2

Please sign in to comment.