Added 3 records, created search and list display to assignments

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