mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-28 12:33:43 +03:00
c049ab7470
* 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()
|