Skip to content

Commit

Permalink
Allow searching for ingredient source names in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Jul 12, 2024
1 parent a593168 commit ea614b1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions wger/nutrition/api/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,22 @@ class Meta:
'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'],
Expand Down

0 comments on commit ea614b1

Please sign in to comment.