added admin models for Course and Assignment

parent 747e094a
...@@ -3,5 +3,14 @@ from django.contrib import admin ...@@ -3,5 +3,14 @@ from django.contrib import admin
from .models import Assignment from .models import Assignment
from .models import Course from .models import Course
admin.site.register(Assignment)
admin.site.register(Course) class AssignmentAdmin(admin.ModelAdmin):
readonly_fields = ('id',)
class CourseAdmin(admin.ModelAdmin):
readonly_fields = ('id',)
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