From aa04fd7f8f06c92e7adb6c1c6375d4e012311327 Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Wed, 26 Jun 2019 10:02:41 +0100 Subject: [PATCH] Fix example code --- docs/queries.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/queries.rst b/docs/queries.rst index 7d2dc9c..67ebb06 100644 --- a/docs/queries.rst +++ b/docs/queries.rst @@ -85,7 +85,7 @@ Show all fields **except** those in ``exclude``: class QuestionType(DjangoObjectType): class Meta: model = Question - exclude = ('question_text', ) + exclude = ('question_text',) Customising fields @@ -99,7 +99,7 @@ You can completely overwrite a field, or add new fields, to a ``DjangoObjectType class Meta: model = Question - exclude_fields = ('question_text') + fields = ('id', 'question_text') extra_field = graphene.String()