fixed assignments on the admin page

parent a5055e7a
...@@ -6,8 +6,8 @@ from .models import Course ...@@ -6,8 +6,8 @@ from .models import Course
class AssignmentAdmin(admin.ModelAdmin): class AssignmentAdmin(admin.ModelAdmin):
readonly_fields = ('passing_score', 'id',) readonly_fields = ('passing_score', 'id',)
fields = ('name', 'description', 'max_points', 'passing_score', 'image') fields = ('name', 'description', 'max_points', 'passing_score', 'course')
fields += ('id',) fields += ('image', 'id',)
class CourseAdmin(admin.ModelAdmin): class CourseAdmin(admin.ModelAdmin):
......
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