mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-10-31 16:07:36 +03:00 
			
		
		
		
	* merge master into v3 * fix order_by snake casing by checking if value is None, switch executor to execution_context_class since schema.execute no longer supports executor * fix linting by removing duplicate defintion and test of convert_form_field_to_string_list
		
			
				
	
	
		
			7 lines
		
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import re
 | |
| from text_unidecode import unidecode
 | |
| 
 | |
| 
 | |
| def to_const(string):
 | |
|     return re.sub(r"[\W|^]+", "_", unidecode(string)).upper()
 |