Sort country codes

pull/1/head
Luca 3 years ago
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…
Cancel
Save