Skip to content

Commit

Permalink
Add search fields to ResourceAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanieschneider committed Dec 5, 2023
1 parent 84616af commit abe440b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/artigo_api/frontend/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class CreatorAdmin(CustomModelAdmin):

@admin.register(Resource)
class ResourceAdmin(admin.ModelAdmin, ExportCsvMixin):
search_fields = ['creators__name', 'titles__name', 'institution']
actions = ['export_as_csv']

def __init__(self, model, admin_site):
Expand Down

0 comments on commit abe440b

Please sign in to comment.