Skip to content

Commit

Permalink
Adding search_fields for ComputingFacility in DJango admin. Addresses #…
Browse files Browse the repository at this point in the history
  • Loading branch information
joncison committed Aug 12, 2020
1 parent 8a52abd commit 4151b86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ifbcatsandbox_api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,16 @@ class TrainingMaterialAdmin(ViewInApiModelAdmin):

@admin.register(models.ComputingFacility)
class ComputingFacilityAdmin(ViewInApiModelAdmin):
search_fields = (
'homepage',
# 'providedBy__name',
# 'team__name',
'trainingMaterials__name',
'serverDescription',
)

list_filter = ('accessibility',)

autocomplete_fields = (
# 'providedBy',
# 'team',
Expand Down

0 comments on commit 4151b86

Please sign in to comment.