mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-10-31 07:57:31 +03:00 
			
		
		
		
	More specific None check.
This commit is contained in:
		
							parent
							
								
									be20450a66
								
							
						
					
					
						commit
						b5e7614b05
					
				|  | @ -41,7 +41,7 @@ def get_choices(choices): | |||
| 
 | ||||
| 
 | ||||
| def convert_django_field_with_choices(field, registry=None): | ||||
|     if registry: | ||||
|     if registry is not None: | ||||
|         converted = registry.get_converted_field(field) | ||||
|         if converted: | ||||
|             return converted | ||||
|  | @ -63,7 +63,7 @@ def convert_django_field_with_choices(field, registry=None): | |||
|         converted = enum(description=field.help_text, required=not field.null) | ||||
|     else: | ||||
|         converted = convert_django_field(field, registry) | ||||
|     if registry: | ||||
|     if registry is not None: | ||||
|         registry.register_converted_field(field, converted) | ||||
|     return converted | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user