Allow searching for ingredient source names in the API

This commit is contained in:
Roland Geider
2024-07-12 11:49:32 +02:00
parent a593168c2e
commit ea614b136c

View File

@@ -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'],