Added admin view for Assignments

parent 18cc4f4b
from django.contrib import admin from django.contrib import admin
# Register your models here. # Register your models here.
from .models import Assignment
class AssignmentAdmin(admin.ModelAdmin):
model = Assignment
list_display = ('name', 'description', 'max_points')
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