newmediamonitoring/dashboard/admin.py

31 lines
893 B
Python

from django.contrib import admin
# Register your models here.
from dashboard.models import Userprofile, Organization, Group, Level, Organizationtype, Group_type
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)
class OrganizationtypeAdmin(admin.ModelAdmin):
list_display = ('id',)
admin.site.register(Organizationtype,OrganizationtypeAdmin)
class Group_typeAdmin(admin.ModelAdmin):
list_display = ('id',)
admin.site.register(Group_type,Group_typeAdmin)