Skip to content

Commit

Permalink
performance hotfix (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi4er4 authored Nov 11, 2024
1 parent a136528 commit 92bbd3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,8 @@ class StudentProfileAdmin(BaseModelAdmin):
list_select_related = ['user', 'branch', 'branch__site']
list_display = ('user', 'branch', 'type', 'year_of_admission', 'status', 'priority')
list_filter = ('type', 'site', 'branch', 'status',)
raw_id_fields = ('user', 'comment_last_author')
raw_id_fields = ('user', 'comment_last_author', 'invitation')
search_fields = ['user__last_name']
raw_id_fields = ['invitation']
inlines = [StudentStatusLogAdminInline, StudentAcademicDisciplineLogAdminInline]
formfield_overrides = {
models.ManyToManyField: {
Expand Down

0 comments on commit 92bbd3b

Please sign in to comment.