Update assignment admin fields
This commit is contained in:
parent
95f00b6bba
commit
b94ce40313
|
|
@ -7,6 +7,7 @@ from assignments.models import Assignment, StudentSubmission, SubmissionFeedback
|
|||
@admin.register(Assignment)
|
||||
class AssignmentAdmin(admin.ModelAdmin):
|
||||
list_display = ('title', 'module', 'deleted', 'owner', )
|
||||
autocomplete_fields = ('owner',)
|
||||
|
||||
|
||||
@admin.register(StudentSubmission)
|
||||
|
|
|
|||
|
|
@ -47,8 +47,10 @@ class CustomUserAdmin(UserAdmin):
|
|||
add_form = CustomUserCreationForm
|
||||
form = CustomUserChangeForm
|
||||
model = User
|
||||
list_display = ('username', 'first_name', 'last_name', 'school_classes_list')
|
||||
list_filter = ('school_classes',)
|
||||
list_display = ('username', 'first_name', 'last_name', 'school_classes_list', 'is_superuser')
|
||||
list_filter = ('school_classes', 'is_superuser')
|
||||
ordering = ['pk']
|
||||
search_fields = ('username', 'first_name', 'last_name')
|
||||
|
||||
inlines = [
|
||||
SchoolClassInline,
|
||||
|
|
|
|||
Loading…
Reference in New Issue