Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CipMap
CipMap
Commits
95105401
Commit
95105401
authored
Apr 25, 2022
by
Tom Kunze
Browse files
user/admin: Fix internal server error on search
user is a related key, so you need to define the searched fields.
parent
88375c51
Changes
1
Hide whitespace changes
Inline
Side-by-side
django/user/admin.py
View file @
95105401
...
...
@@ -7,4 +7,4 @@ from .models import Profile
@
register
(
Profile
)
class
ProfileAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'user'
,
'exercise'
)
search_fields
=
list_display
search_fields
=
(
'user__username'
,
'exercise'
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment