Skip to content

Commit

Permalink
Update for django 1.10
Browse files Browse the repository at this point in the history
* Django has added indirection in ManagerDescriptor.__get__, breaking
  our transition from MongoUser to User
* MongoEngineBackend.user_can_authenticate
  • Loading branch information
erezarnon committed Oct 6, 2016
1 parent 879c63a commit d36428c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions django_mongoengine/mongo_auth/backends.py
Expand Up @@ -11,3 +11,4 @@ class MongoEngineBackend(object):

authenticate = auth.backends.ModelBackend.__dict__["authenticate"]
get_user = auth.backends.ModelBackend.__dict__["get_user"]
user_can_authenticate = auth.backends.ModelBackend.__dict__["user_can_authenticate"]
2 changes: 1 addition & 1 deletion django_mongoengine/mongo_auth/managers.py
Expand Up @@ -79,4 +79,4 @@ def db(self):
raise NotImplementedError

def get_queryset(self):
return self.model.objects
return get_user_document().objects

0 comments on commit d36428c

Please sign in to comment.