Skip to content

Commit 226f81b

Browse files
committed
Merge pull request #171 from iwaszko/patch-1
Fix invalid references to User model in Django tutorial
2 parents 605e823 + 97784bb commit 226f81b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/pages/docs/django/tutorial.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ representation, Graphene needs to know about each *type* of object which will ap
8080
the graph.
8181

8282
This graph also has a *root type* through which all access begins. This is the `Query` class below.
83-
In this example, we provide the ability to list all users via `all_users`, and the
84-
ability to obtain a specific user via `get_user`.
83+
In this example, we provide the ability to list all ingredients via `all_ingredients`, and the
84+
ability to obtain a specific ingredient via `ingredient`.
8585

8686
Create `cookbook/ingredients/schema.py` and type the following:
8787

@@ -94,8 +94,8 @@ from graphene.contrib.django.types import DjangoNode
9494
from cookbook.ingredients.models import Category, Ingredient
9595

9696

97-
# Graphene will automatically map the User model's fields onto the UserType.
98-
# This is configured in the UserType's Meta class (as you can see below)
97+
# Graphene will automatically map the Category model's fields onto the CategoryNode.
98+
# This is configured in the CategoryNode's Meta class (as you can see below)
9999
class CategoryNode(DjangoNode):
100100
class Meta:
101101
model = Category

0 commit comments

Comments
 (0)