Commit 918ec07e authored by Anya Habana's avatar Anya Habana

Created admin and registered Department

parent a9decd4e
from django.contrib import admin
from .models import WidgetUser
from .models import Department, WidgetUser
class DepartmentAdmin(admin.ModelAdmin):
model = Department
class WidgetUserAdmin(admin.ModelAdmin):
model = WidgetUser
# Register your models here.
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