mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 05:20:16 +02:00
I forgot to adjust the class names in admin.py after changing the first characters to caps. There was also a little shuffling of code to make the definitions work.
13 lines
352 B
Python
13 lines
352 B
Python
from django.contrib import admin
|
|
from .models import AuthTS
|
|
from .models import TSgroup
|
|
from .models import UserTSgroup
|
|
|
|
class AuthTSgroupAdmin(admin.ModelAdmin):
|
|
fields = ['ts_group_id','auth_group_id']
|
|
|
|
class TSgroupAdmin(admin.ModelAdmin):
|
|
fields = ['name']
|
|
|
|
admin.site.register(AuthTS, AuthTSgroupAdmin)
|
|
admin.site.register(TSgroup, TSgroupAdmin) |