mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
Allow searching for ingredient source names in the API
This commit is contained in:
@@ -27,17 +27,22 @@ class IngredientFilterSet(filters.FilterSet):
|
||||
'id': ['exact', 'in'],
|
||||
'uuid': ['exact'],
|
||||
'code': ['exact'],
|
||||
'source_name': ['exact'],
|
||||
'name': ['exact'],
|
||||
|
||||
'energy': ['exact'],
|
||||
'protein': ['exact'],
|
||||
'carbohydrates': ['exact'],
|
||||
'carbohydrates_sugar': ['exact'],
|
||||
'created': ['exact', 'gt', 'lt'],
|
||||
'last_update': ['exact', 'gt', 'lt'],
|
||||
'energy': ['exact'],
|
||||
'fat': ['exact'],
|
||||
'fat_saturated': ['exact'],
|
||||
'fiber': ['exact'],
|
||||
'name': ['exact'],
|
||||
'protein': ['exact'],
|
||||
'sodium': ['exact'],
|
||||
|
||||
'created': ['exact', 'gt', 'lt'],
|
||||
'last_update': ['exact', 'gt', 'lt'],
|
||||
'last_imported': ['exact', 'gt', 'lt'],
|
||||
|
||||
'language': ['exact'],
|
||||
'license': ['exact'],
|
||||
'license_author': ['exact'],
|
||||
|
||||
Reference in New Issue
Block a user