From 97784bbb117099d8db7c94c1b472efd9b4e276c2 Mon Sep 17 00:00:00 2001 From: Pawel Iwaszko Date: Thu, 19 May 2016 15:40:27 +0200 Subject: [PATCH] Fix invalid references to User model in Django tutorial --- docs/pages/docs/django/tutorial.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pages/docs/django/tutorial.md b/docs/pages/docs/django/tutorial.md index eb7b7481..a4d2f072 100644 --- a/docs/pages/docs/django/tutorial.md +++ b/docs/pages/docs/django/tutorial.md @@ -80,8 +80,8 @@ representation, Graphene needs to know about each *type* of object which will ap the graph. This graph also has a *root type* through which all access begins. This is the `Query` class below. -In this example, we provide the ability to list all users via `all_users`, and the -ability to obtain a specific user via `get_user`. +In this example, we provide the ability to list all ingredients via `all_ingredients`, and the +ability to obtain a specific ingredient via `ingredient`. Create `cookbook/ingredients/schema.py` and type the following: @@ -94,8 +94,8 @@ from graphene.contrib.django.types import DjangoNode from cookbook.ingredients.models import Category, Ingredient -# Graphene will automatically map the User model's fields onto the UserType. -# This is configured in the UserType's Meta class (as you can see below) +# Graphene will automatically map the Category model's fields onto the CategoryNode. +# This is configured in the CategoryNode's Meta class (as you can see below) class CategoryNode(DjangoNode): class Meta: model = Category