better code standards

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