Migrations won't work if field signature changes
If the __init__
signature of a model field changes in the way that e.g. a positional argument is added / removed and doesn't replace / isn't replaced by a previously existing keyword argument, the old migration files won't work any more because the rely on the actual __init__
signature to create an instance of the field.
This should be documented in the respective custom field and migration docs.
Change History
(6)
Cc: |
info@… added
|
Easy pickings: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
set to rjasjukaitis
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
I added a paragraph to the migration documentation. Asking for review: https://github.com/django/django/pull/1985