Skip to content

Commit

Permalink
Add api token field to UserAdmin (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
haaavk authored Nov 7, 2022
1 parent 2de0b9b commit b397d1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion shynet/core/admin.py
Original file line number Diff line number Diff line change
@@ -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)


Expand Down

0 comments on commit b397d1f

Please sign in to comment.