diff --git a/shynet/core/admin.py b/shynet/core/admin.py index 118b68c..bd8e306 100644 --- a/shynet/core/admin.py +++ b/shynet/core/admin.py @@ -1,8 +1,15 @@ from django.contrib import admin -from django.contrib.auth.admin import UserAdmin +from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from .models import Service, User + +class UserAdmin(BaseUserAdmin): + fieldsets = BaseUserAdmin.fieldsets + ( + ("Extra fields", {"fields": ("api_token",)}), + ) + + admin.site.register(User, UserAdmin)