def user_can_authenticate(self, user):
        is_active = getattr(user, 'is_active', None)
        return is_active or is_active is None
Actual implementation of metadata retrieval.
dataset/ETHPy150Open django/django/django/contrib/auth/backends.py/ModelBackend.user_can_authenticate--crossover with--dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/Dispatcher.get_metadata