Added 3 records, created search and list display to assignments

parent 1955a24f
......@@ -3,4 +3,9 @@ from django.contrib import admin
# Register your models here.
from .models import Assignment
admin.site.register(Assignment)
\ No newline at end of file
class AssignmentAdmin(admin.ModelAdmin):
model = Assignment
search_fields = ['name', 'description']
list_display = ('name', 'description', 'max_points')
admin.site.register(Assignment, AssignmentAdmin)
\ No newline at end of file
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