def check_active(self, user):
        if not self.require_active:
            # Ignore & move on.
            return True

        return user.is_active
Ensures the user has an active account.
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/authentication.py/Authentication.check_active