Document the necessity to add on_delete param to old migrations
When going through the deprecation warnings i got when updating to django 1.9, i was surprised to find out that even after adding on_delete to all ForeignKeys i had and adding the according migration, the old migrations still threw those errors.
Apparently (see PR i'm supposed to edit old migrations. i think this is something that should go into the docs (release notes?), as i was pretty surprised by that and found the "solution" only after digging until i got to the PR.
Change History
(5)
Easy pickings: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Cleanup/optimization
|
Owner: |
changed from nobody to Luis San Pablo
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
The documentation is already in the release notes:
https://docs.djangoproject.com/en/1.9/releases/1.9/#foreignkey-and-onetoonefield-on-delete-argument
So I just updated the warning to explain that the migrations should also be upgraded.
https://github.com/django/django/pull/5869