Skip to content

Commit

Permalink
Added search to BCO admin page
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   api/admin.py
  • Loading branch information
HadleyKing committed Nov 30, 2023
1 parent efd046a commit b516c59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
from api.model.prefix import Prefix, prefix_table
from api.model.groups import GroupInfo

admin.site.register(BCO, GuardedModelAdmin)
class BcoModelAdmin(admin.ModelAdmin):
search_fields = ["contents", "object_id"]
admin.site.register(BCO, BcoModelAdmin)
# admin.site.register(
admin.site.register(prefix_table)
admin.site.register(new_users)
admin.site.register(GroupInfo)
Expand Down

0 comments on commit b516c59

Please sign in to comment.