1234567891011121314151617 |
- from django.contrib import admin
- from rest_framework_api_key.admin import APIKeyModelAdmin
- from rest_framework_api_key.models import APIKey as APIKey_default
- from .models import APIKey
- admin.site.unregister(APIKey_default)
- @admin.register(APIKey)
- class ClientAPIKeyModelAdmin(APIKeyModelAdmin):
- pass
- #admin.site.register(APIKey)
|