Fixes depreciation warnings in Django Auth.

Closes #156
This commit is contained in:
Ross Lawley 2011-06-17 15:07:27 +01:00
parent 99f923e27f
commit c24bc77c17

View File

@ -99,6 +99,10 @@ class MongoEngineBackend(object):
"""Authenticate using MongoEngine and mongoengine.django.auth.User. """Authenticate using MongoEngine and mongoengine.django.auth.User.
""" """
supports_object_permissions = False
supports_anonymous_user = False
supports_inactive_user = False
def authenticate(self, username=None, password=None): def authenticate(self, username=None, password=None):
user = User.objects(username=username).first() user = User.objects(username=username).first()
if user: if user: