Django: model field choices that can change without a database migration

Django: model field choices that can change without a database migration

May 16, 2025 | Articles
Use Django 5.0 callable choices to avoid no-op migrations when updating model field choices, though database constraints still require migrations for data integrity.
URL: https://adamj.eu/tech/2025/05/03/django-choices-change-without-migration/
Filed in: Articles
Sponsor banner

Sponsor Number One

Subscribe to Django News

Weekly Django news, articles, projects, and more. Curated by Jeff Triplett & William Vincent.

No spam, ever. We'll never share your email address and you can opt out at any time.