feat: improve the admin for the nomcom volunteer model (#4223)
* feat: improve the admin for the nomcom volunteer model * fix: restore raw-id for person on nomcom volunteer admin.
This commit is contained in:
parent
9d10fb7dd1
commit
18bf87ea5e
|
@ -70,8 +70,9 @@ class TopicFeedbackLastSeenAdmin(admin.ModelAdmin):
|
|||
admin.site.register(TopicFeedbackLastSeen, TopicFeedbackLastSeenAdmin)
|
||||
|
||||
class VolunteerAdmin(admin.ModelAdmin):
|
||||
list_display = ['nomcom','person','affiliation']
|
||||
list_display = ['id', 'nomcom','person','affiliation']
|
||||
list_filter = ['nomcom']
|
||||
search_fields = ['person__name', 'nomcom__group__acronym', 'affiliation']
|
||||
raw_id_fields = ['person']
|
||||
admin.site.register(Volunteer, VolunteerAdmin)
|
||||
|
||||
|
|
Loading…
Reference in a new issue