permission.py 179 B

1234567
  1. from rest_framework_api_key.permissions import BaseHasAPIKey
  2. from .models import APIKey
  3. from rest_framework import permissions
  4. class HasAPIKey(BaseHasAPIKey):
  5. model = APIKey