Brett Costabile 9d884c0a2c More format corrections
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.
2015-05-24 15:32:43 -04:00

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)