File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Meta:
1414 model = Ingredient
1515
1616
17- class Query (graphene . AbstractType ):
17+ class Query (object ):
1818 category = graphene .Field (CategoryType ,
1919 id = graphene .Int (),
2020 name = graphene .String ())
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Meta:
1414 model = RecipeIngredient
1515
1616
17- class Query (graphene . AbstractType ):
17+ class Query (object ):
1818 recipe = graphene .Field (RecipeType ,
1919 id = graphene .Int (),
2020 title = graphene .String ())
Original file line number Diff line number Diff line change 11from cookbook .ingredients .models import Category , Ingredient
2- from graphene import AbstractType , Node
2+ from graphene import Node
33from graphene_django .filter import DjangoFilterConnectionField
44from graphene_django .types import DjangoObjectType
55
@@ -28,7 +28,7 @@ class Meta:
2828 }
2929
3030
31- class Query (AbstractType ):
31+ class Query (object ):
3232 category = Node .Field (CategoryNode )
3333 all_categories = DjangoFilterConnectionField (CategoryNode )
3434
Original file line number Diff line number Diff line change 11from cookbook .recipes .models import Recipe , RecipeIngredient
2- from graphene import AbstractType , Node
2+ from graphene import Node
33from graphene_django .filter import DjangoFilterConnectionField
44from graphene_django .types import DjangoObjectType
55
@@ -24,7 +24,7 @@ class Meta:
2424 }
2525
2626
27- class Query (AbstractType ):
27+ class Query (object ):
2828 recipe = Node .Field (RecipeNode )
2929 all_recipes = DjangoFilterConnectionField (RecipeNode )
3030
You can’t perform that action at this time.
0 commit comments