cms/cmsMain/admin.py
2024-08-11 22:39:47 +03:00

19 lines
No EOL
519 B
Python

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin,GroupAdmin
from django.contrib.auth.models import User, Group
from unfold.admin import ModelAdmin
from .models import Site, Page
admin.site.unregister(Group)
admin.site.unregister(User)
@admin.register(User)
class UserAdmin(UserAdmin, ModelAdmin): pass
@admin.register(Group)
class GroupAdmin(GroupAdmin, ModelAdmin): pass
@admin.register(Site)
class SiteAdmin(ModelAdmin): pass
@admin.register(Page)
class PageAdmin(ModelAdmin): pass