Commit df268670 authored by kylemendozaa's avatar kylemendozaa

registered course admin

parent e6bfc004
from django.contrib import admin from django.contrib import admin
from .models import Assignment from .models import Assignment, Course
class AssignmentAdmin(admin.ModelAdmin): class AssignmentAdmin(admin.ModelAdmin):
model = Assignment model = Assignment
admin.site.register(Assignment, AssignmentAdmin) class CourseAdmin(admin.ModelAdmin):
\ No newline at end of file model = Course
admin.site.register(Assignment, AssignmentAdmin)
admin.site.register(Course, CourseAdmin)
\ No newline at end of file
No preview for this file type
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