mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-17 19:52:23 +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 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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user