'Attempts to find the API key for the user. Uses ``ApiKey`` by default
but can be overridden.'

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
