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:
14
14
model = Ingredient
15
15
16
16
17
- class Query (graphene . AbstractType ):
17
+ class Query (object ):
18
18
category = graphene .Field (CategoryType ,
19
19
id = graphene .Int (),
20
20
name = graphene .String ())
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Meta:
14
14
model = RecipeIngredient
15
15
16
16
17
- class Query (graphene . AbstractType ):
17
+ class Query (object ):
18
18
recipe = graphene .Field (RecipeType ,
19
19
id = graphene .Int (),
20
20
title = graphene .String ())
Original file line number Diff line number Diff line change 1
1
from cookbook .ingredients .models import Category , Ingredient
2
- from graphene import AbstractType , Node
2
+ from graphene import Node
3
3
from graphene_django .filter import DjangoFilterConnectionField
4
4
from graphene_django .types import DjangoObjectType
5
5
@@ -28,7 +28,7 @@ class Meta:
28
28
}
29
29
30
30
31
- class Query (AbstractType ):
31
+ class Query (object ):
32
32
category = Node .Field (CategoryNode )
33
33
all_categories = DjangoFilterConnectionField (CategoryNode )
34
34
Original file line number Diff line number Diff line change 1
1
from cookbook .recipes .models import Recipe , RecipeIngredient
2
- from graphene import AbstractType , Node
2
+ from graphene import Node
3
3
from graphene_django .filter import DjangoFilterConnectionField
4
4
from graphene_django .types import DjangoObjectType
5
5
@@ -24,7 +24,7 @@ class Meta:
24
24
}
25
25
26
26
27
- class Query (AbstractType ):
27
+ class Query (object ):
28
28
recipe = Node .Field (RecipeNode )
29
29
all_recipes = DjangoFilterConnectionField (RecipeNode )
30
30
You can’t perform that action at this time.
0 commit comments