Commit 95105401 authored by Tom Kunze's avatar 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
......@@ -7,4 +7,4 @@ from .models import Profile
class ProfileAdmin(admin.ModelAdmin):
list_display = ('user', 'exercise')
search_fields = list_display
search_fields = ('user__username', 'exercise')
Supports Markdown
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