2
0
Fork 0

Sort country codes

This commit is contained in:
Luca 2022-04-28 00:17:26 +02:00
parent fcbec535bc
commit 9d8e28f0e1
1 changed files with 1 additions and 1 deletions

View File

@ -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]