Permalink
Browse files

Merge pull request #83 from erezarnon/tmp

Handle django indirection part 2
  • Loading branch information...
2 parents 8fa0ffc + 6566d33 commit 207df404b4f7473d92aa3a8a7c9ad8732c18812c @last-partizan last-partizan committed on GitHub Dec 15, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_mongoengine/mongo_auth/managers.py
@@ -70,7 +70,7 @@ def contribute_to_class(self, model, name):
def get(self, *args, **kwargs):
try:
return self.get_queryset().get(*args, **kwargs)
- except self.model.DoesNotExist:
+ except get_user_document().DoesNotExist:
# ModelBackend expects this exception
raise self.dj_model.DoesNotExist

0 comments on commit 207df40

Please sign in to comment.