Skip to content

Commit 22b3321

Browse files
committed
Fixed Cookbook. Fixed #68
1 parent 401af42 commit 22b3321

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/cookbook/cookbook/ingredients/schema.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class Meta:
1212
model = Category
1313
interfaces = (Node, )
1414
filter_fields = ['name', 'ingredients']
15-
filter_order_by = ['name']
1615

1716

1817
class IngredientNode(DjangoObjectType):
@@ -27,7 +26,6 @@ class Meta:
2726
'category': ['exact'],
2827
'category__name': ['exact'],
2928
}
30-
filter_order_by = ['name', 'category__name']
3129

3230

3331
class Query(AbstractType):

examples/cookbook/cookbook/recipes/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Meta:
99
model = Recipe
1010
interfaces = (Node, )
1111
filter_fields = ['title','amounts']
12-
filter_order_by = ['title']
12+
1313

1414
class RecipeIngredientNode(DjangoObjectType):
1515

@@ -22,7 +22,7 @@ class Meta:
2222
'recipe': ['exact'],
2323
'recipe__title': ['icontains'],
2424
}
25-
filter_order_by = ['ingredient__name', 'recipe__title',]
25+
2626

2727
class Query(AbstractType):
2828
recipe = Node.Field(RecipeNode)

0 commit comments

Comments
 (0)