mirror of
https://github.com/Eugeny/tabby-web.git
synced 2025-06-07 21:19:53 +00:00
15 lines
401 B
Python
15 lines
401 B
Python
from django.contrib import admin
|
|
from django.contrib.auth.admin import UserAdmin
|
|
from .models import Gateway, User, Config
|
|
|
|
|
|
class CustomUserAdmin(UserAdmin):
|
|
fieldsets = UserAdmin.fieldsets + (
|
|
(None, {'fields': ('custom_connection_gateway', 'custom_connection_gateway_token')}),
|
|
)
|
|
|
|
|
|
admin.site.register(User, CustomUserAdmin)
|
|
admin.site.register(Config)
|
|
admin.site.register(Gateway)
|