Permalink
Browse files

Handle django indirection part 2

  • Loading branch information...
1 parent 8fa0ffc commit 6566d33c9ef7d5ec9fc2096e2d7b7bef960599d3 @erezarnon erezarnon committed Dec 13, 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 6566d33

Please sign in to comment.