SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 510df014 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix wrong lookup field in admin

parent 8428f2e7
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ def fellowhip_is_active(fellowship): ...@@ -12,7 +12,7 @@ def fellowhip_is_active(fellowship):
class FellowshipAdmin(admin.ModelAdmin): class FellowshipAdmin(admin.ModelAdmin):
search_fields = ['contributor__last_name', 'contributor__first_name'] search_fields = ['contributor__user__last_name', 'contributor__user__first_name']
list_display = ('__str__', 'guest', fellowhip_is_active, ) list_display = ('__str__', 'guest', fellowhip_is_active, )
list_filter = ('guest',) list_filter = ('guest',)
fellowhip_is_active.boolean = True fellowhip_is_active.boolean = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment