from rest_framework_api_key.permissions import HasAPIKey class UserEditAPIKeyPermissions(HasAPIKey): """ Custom permision for restricting access using API key. """ pass