mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-19 04:32:25 +03:00
Fix example code
This commit is contained in:
parent
8776920723
commit
aa04fd7f8f
|
@ -85,7 +85,7 @@ Show all fields **except** those in ``exclude``:
|
||||||
class QuestionType(DjangoObjectType):
|
class QuestionType(DjangoObjectType):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Question
|
model = Question
|
||||||
exclude = ('question_text', )
|
exclude = ('question_text',)
|
||||||
|
|
||||||
|
|
||||||
Customising fields
|
Customising fields
|
||||||
|
@ -99,7 +99,7 @@ You can completely overwrite a field, or add new fields, to a ``DjangoObjectType
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Question
|
model = Question
|
||||||
exclude_fields = ('question_text')
|
fields = ('id', 'question_text')
|
||||||
|
|
||||||
extra_field = graphene.String()
|
extra_field = graphene.String()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user