readded Course model to admin

parent 61070961
......@@ -3,8 +3,8 @@ from django.contrib import admin
# Register your models here.
from .models import Assignment, Course
#class CourseInline(admin.TabularInline):
# model = Course
class CourseInline(admin.TabularInline):
model = Course
class AssignmentAdmin(admin.ModelAdmin):
model = Assignment
......@@ -12,7 +12,5 @@ class AssignmentAdmin(admin.ModelAdmin):
list_display = ('name', 'max_points', 'description', 'passing_score')
list_filter = ('name', 'max_points',)
# inlines = [CourseInline,]
#admin.site.register(Course)
admin.site.register(Course)
admin.site.register(Assignment, AssignmentAdmin)
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