Skip to content

PRETTY_*_TIMEZONES_CHOICES is problematic with migrations #12

Open
@PiDelport

Description

@PiDelport

Currently, setting TimeZoneField's choices parameter to PRETTY_ALL_TIMEZONES_CHOICES or PRETTY_COMMON_TIMEZONES_CHOICES interacts pretty badly with Django migrations: every time any time zone's GMT offset changes, Django want to generate a new schema migration because of the differing choices list.

This is not very workable: we're facing a constant schema churn because of this, without any easy way around it (other than not using the PRETTY_*, but we want to display the offsets for user convenience).

Is there any reasonable way to avoid this problem somehow?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions