lots of things working
This commit is contained in:
11
cookbook/filters.py
Normal file
11
cookbook/filters.py
Normal file
@ -0,0 +1,11 @@
|
||||
import django_filters
|
||||
|
||||
from cookbook.models import Recipe
|
||||
|
||||
|
||||
class RecipeFilter(django_filters.FilterSet):
|
||||
name = django_filters.CharFilter(lookup_expr='iexact')
|
||||
|
||||
class Meta:
|
||||
model = Recipe
|
||||
fields = ['name', 'category', 'keywords']
|
Reference in New Issue
Block a user