Skip to content

Commit af26cbb

Browse files
jameschristophermfogel
authored andcommitted
Remove underscore from display name of timezone
1 parent 0d412da commit af26cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timezone_field/fields.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TimeZoneField(models.Field):
3636

3737
# NOTE: these defaults are excluded from migrations. If these are changed,
3838
# existing migration files will need to be accomodated.
39-
CHOICES = [(pytz.timezone(tz), tz) for tz in pytz.common_timezones]
39+
CHOICES = [(pytz.timezone(tz), tz.replace('_', ' ')) for tz in pytz.common_timezones]
4040
MAX_LENGTH = 63
4141

4242
def __init__(self, *args, **kwargs):

0 commit comments

Comments
 (0)