-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade to Django 5.2 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite a few changes but indeed nicely straightforward. Looks mostly good to me. I've just added some minor observations.
I can test the migrations on a copy of the production system but only in two weeks time. I think it is okay to merge before that. Let me know if you prefer to wait.
Since the changes have been tested and look stable to me, I’m fine with merging now; I don’t anticipate any issues. |
Description:
This major upgrade transitions our codebase from Django 2.0.5 to 5.2:
Python Upgrade: 3.6 -> 3.12
Django Upgrade: 2.0.5 -> 5.2
url()
tore_path()
, etc.).DEFAULT_AUTO_FIELD
and related flags).Migration Trickiness (AutoField -> BigAutoField) (This was a tricky one and worth noting explicitly)
BigAutoField
by default for primary keys, but older migrations were based onAutoField
.OAuth2 Fixes
GitHub Actions Upgrade
PS
While the migration is working well on my local and has been tested manually with sample model entries, we must make sure to back up the production database before running these migrations, especially given the manual materialized view handling. That being said, it’s unlikely to cause data loss.