Skip to content

Commit

Permalink
Add search fields for substance
Browse files Browse the repository at this point in the history
  • Loading branch information
ddahan committed Apr 22, 2024
1 parent b593c63 commit a7f018c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/admin/substance.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ def get_ingredients(self, obj):
]
list_display = ("name", "get_plants", "get_microorganisms", "get_ingredients", "status")
list_filter = ("is_obsolete", "status")
search_fields = ["id", "name"]

0 comments on commit a7f018c

Please sign in to comment.