mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-10-26 05:30:59 +03:00 
			
		
		
		
	Allow passing of meta object in SerializerMutation options (#1028)
This commit is contained in:
		
							parent
							
								
									f5d94fda1f
								
							
						
					
					
						commit
						19e3eddddb
					
				|  | @ -66,6 +66,7 @@ class SerializerMutation(ClientIDMutation): | |||
|         only_fields=(), | ||||
|         exclude_fields=(), | ||||
|         convert_choices_to_enum=True, | ||||
|         _meta=None, | ||||
|         **options | ||||
|     ): | ||||
| 
 | ||||
|  | @ -99,6 +100,7 @@ class SerializerMutation(ClientIDMutation): | |||
|             convert_choices_to_enum=convert_choices_to_enum, | ||||
|         ) | ||||
| 
 | ||||
|         if not _meta: | ||||
|             _meta = SerializerMutationOptions(cls) | ||||
|         _meta.lookup_field = lookup_field | ||||
|         _meta.model_operations = model_operations | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user