Skip to content

Commit

Permalink
Remove underscore from display name of timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
jameschristopher authored and mfogel committed Apr 19, 2018
1 parent 0d412da commit af26cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timezone_field/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TimeZoneField(models.Field):

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

def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit af26cbb

Please sign in to comment.