Commit 8d03446f authored by Brescia Amandy's avatar Brescia Amandy

Created an admin panel for the Assignments app

parent 353dc104
from django.contrib import admin from django.contrib import admin
# Register your models here. from .models import Assignment, Course
class AssignmentAdmin(admin.ModelAdmin):
model = Assignment
class CourseAdmin(admin.ModelAdmin):
model = Course
admin.site.register(Assignment, AssignmentAdmin)
admin.site.register(Course, CourseAdmin)
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