mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-11-04 09:57:41 +03:00 
			
		
		
		
	Merge pull request #584 from vpoulailleau/patch-1
fix documentation to access to the request in Django
This commit is contained in:
		
						commit
						a8a6555537
					
				| 
						 | 
					@ -48,7 +48,7 @@ Mutations can also accept files, that's how it will work with different integrat
 | 
				
			||||||
        @classmethod
 | 
					        @classmethod
 | 
				
			||||||
        def mutate_and_get_payload(cls, root, info, **input):
 | 
					        def mutate_and_get_payload(cls, root, info, **input):
 | 
				
			||||||
            # When using it in Django, context will be the request
 | 
					            # 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
 | 
					            # Or, if used in Flask, context will be the flask global request
 | 
				
			||||||
            # files = context.files
 | 
					            # files = context.files
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user