Sort country codes
This commit is contained in:
parent
fcbec535bc
commit
9d8e28f0e1
|
@ -12,7 +12,7 @@ class AllowedPhoneCountries(types.MultipleChoicePreference):
|
||||||
name = "allowed_countries"
|
name = "allowed_countries"
|
||||||
choices = [
|
choices = [
|
||||||
(f"{phonenumbers.country_code_for_region(cc)}", cc)
|
(f"{phonenumbers.country_code_for_region(cc)}", cc)
|
||||||
for cc in phonenumbers.SUPPORTED_REGIONS
|
for cc in sorted(phonenumbers.SUPPORTED_REGIONS)
|
||||||
]
|
]
|
||||||
default = [49, 41, 43]
|
default = [49, 41, 43]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue