lots of things working

This commit is contained in:
vabene1111
2018-02-01 12:16:39 +01:00
parent 572e0b5fc9
commit 901ae9053a
13 changed files with 333 additions and 199 deletions

11
cookbook/filters.py Normal file
View 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']