Skip to content
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

Upgrade to Django 4.2 #495

Merged
merged 3 commits into from
Apr 12, 2024
Merged

Upgrade to Django 4.2 #495

merged 3 commits into from
Apr 12, 2024

Conversation

kfdm
Copy link
Collaborator

@kfdm kfdm commented Apr 11, 2024

Django 3.2 is past EOL ( https://endoflife.date/django ) and 4.2 is the current LTS version. There are not many changes that seem to directly affect us, and we can simply run the third-party django-upgrade command to take care of a few minor updates.

Django 3.2 is past EOL and 4.2 is the current LTS version. There are not
many changes that seem to directly affect us, and we can simply run the
third-party django-upgrade command to take care of a few minor updates.
@kfdm kfdm requested a review from a team as a code owner April 11, 2024 06:28
kfdm added 2 commits April 11, 2024 16:17
Some of the behavior for related fields changed in 4.2, so we fix our
test case to reload from the database to avoid triggering this edge case.
Currently our rule test triggers an edge case in Django 4.2's more strict
handling of related fields. We'll temporarily disable these tests since
we're planning on rewriting the entire import function anyways.
@kfdm kfdm merged commit 06a2c20 into line:master Apr 12, 2024
5 checks passed
@kfdm kfdm deleted the django-4.2 branch April 12, 2024 01:06
@kfdm kfdm mentioned this pull request May 24, 2024
kfdm added a commit that referenced this pull request May 24, 2024
In #495 ( 06a2c20 ) we upgraded Django. This means that Django itself doesn't depend on pytz, but we still had a few instances of our code requiring it. Instead of making pytz a dependency of Promgen, we can refactor a few bits to remove the dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants