def render_countryfield(field, attrs):
	"""
	Render a custom ChoiceField specific for CountryFields.
	"""
	choices = ((k, k.lower(), v)
		for k, v in field.field._choices[1:])

	# Render a `ChoiceField` with all countries
	return render_choicefield(
		field, attrs, format_html_join("", wrappers.COUNTRY_TEMPLATE, choices)
	)
def render_countryfield ( field , attrs ) : choices = ( ( k , k . lower ( ) , v ) for k , v in field . field . _choices [ 1 : ] ) return render_choicefield ( field , attrs , format_html_join ( "" , wrappers . COUNTRY_TEMPLATE , choices ) )
Render a custom ChoiceField specific for CountryFields.