Organize Assignment form in admin to make passing_threshold visible
This commit is contained in:
+13
-1
@@ -22,7 +22,19 @@ class AssignmentAdmin(ModelAdmin):
|
|||||||
list_display_links = ('title',)
|
list_display_links = ('title',)
|
||||||
list_filter = ('subject', 'is_published', 'allow_late_submissions')
|
list_filter = ('subject', 'is_published', 'allow_late_submissions')
|
||||||
search_fields = ('title', 'description')
|
search_fields = ('title', 'description')
|
||||||
exclude = ('created_by',)
|
|
||||||
|
fieldsets = (
|
||||||
|
('Основная информация', {
|
||||||
|
'fields': ('title', 'subject', 'short_description', 'description')
|
||||||
|
}),
|
||||||
|
('Настройки доступа и времени', {
|
||||||
|
'fields': ('is_published', 'assign_to_all', 'assigned_students', 'deadline', 'time_limit')
|
||||||
|
}),
|
||||||
|
('Настройки проверки', {
|
||||||
|
'fields': ('allow_late_submissions', 'passing_threshold')
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
|
||||||
filter_horizontal = ('assigned_students',)
|
filter_horizontal = ('assigned_students',)
|
||||||
inlines = [QuestionInline]
|
inlines = [QuestionInline]
|
||||||
actions = ['make_published', 'make_unpublished', 'delete_selected_assignments']
|
actions = ['make_published', 'make_unpublished', 'delete_selected_assignments']
|
||||||
|
|||||||
Reference in New Issue
Block a user