Merge pull request #584 from vpoulailleau/patch-1

fix documentation to access to the request in Django
This commit is contained in:
Syrus Akbary 2017-10-30 09:36:58 -07:00 committed by GitHub
commit a8a6555537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ Mutations can also accept files, that's how it will work with different integrat
@classmethod
def mutate_and_get_payload(cls, root, info, **input):
# When using it in Django, context will be the request
files = context.FILES
files = info.context.FILES
# Or, if used in Flask, context will be the flask global request
# files = context.files