1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 16:02:25 +00:00
This commit is contained in:
bleizi 2024-02-07 18:05:32 +01:00
parent d228dbf225
commit b6b81a8b8f
No known key found for this signature in database
GPG Key ID: D46D7E3364433208

View File

@ -26,7 +26,7 @@ admin_site.register(Site, SiteAdmin)
# Add external apps model
if "oauth2_provider" in settings.INSTALLED_APPS:
from oauth2_provider.admin import ApplicationAdmin, GrantAdmin, AccessTokenAdmin, RefreshTokenAdmin
from oauth2_provider.model import Application, Grant, AccessToken, RefreshToken
from oauth2_provider.models import Application, Grant, AccessToken, RefreshToken
admin_site.register(Application, ApplicationAdmin)
admin_site.register(Grant, GrantAdmin)
admin_site.register(AccessToken, AccessTokenAdmin)