newmediamonitoring/dashboard/admin.py

25 lines
583 B
Python

from django.contrib import admin
# Register your models here.
from dashboard.models import Userprofile, Organization, Group, Level
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('id',)
admin.site.register(Userprofile,UserProfileAdmin)
class OrganizationAdmin(admin.ModelAdmin):
list_display = ('id',)
admin.site.register(Organization,OrganizationAdmin)
class GroupAdmin(admin.ModelAdmin):
list_display = ('id',)
admin.site.register(Group,GroupAdmin)
class LevelAdmin(admin.ModelAdmin):
list_display = ('id',)
admin.site.register(Level,LevelAdmin)