mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
added ability to link recipes to ingredients
This commit is contained in:
@@ -44,3 +44,11 @@ class RecipeFilter(django_filters.FilterSet):
|
||||
class Meta:
|
||||
model = Recipe
|
||||
fields = ['name', 'keywords', 'ingredients', 'internal']
|
||||
|
||||
|
||||
class IngredientFilter(django_filters.FilterSet):
|
||||
name = django_filters.CharFilter(lookup_expr='icontains')
|
||||
|
||||
class Meta:
|
||||
model = Ingredient
|
||||
fields = ['name']
|
||||
|
||||
Reference in New Issue
Block a user