Commit be4633bf authored by KaoruSawade's avatar KaoruSawade

Made admin panel for models Department and WidgetUser

parent 714224ab
from django.contrib import admin from django.contrib import admin
from .models import Department, WidgetUser
# Register your models here. class DepartmentAdmin(admin.ModelAdmin):
model = Department
class WidgetUserAdmin(admin.ModelAdmin):
model = WidgetUser
admin.site.register(Department, DepartmentAdmin)
admin.site.register(WidgetUser, WidgetUserAdmin)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment