def get_key(self, user, api_key):
        from tastypie.models import ApiKey

        try:
            if user.api_key.key != api_key:
                return self._unauthorized()
        except ApiKey.DoesNotExist:
            return self._unauthorized()

        return True
Attempts to find the API key for the user. Uses ``ApiKey`` by default
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/authentication.py/ApiKeyAuthentication.get_key