Skip to content

bug-1958216: upgrade Django to 5.2.11#7146

Merged
biancadanforth merged 6 commits intomainfrom
cringe-178
Feb 19, 2026
Merged

bug-1958216: upgrade Django to 5.2.11#7146
biancadanforth merged 6 commits intomainfrom
cringe-178

Conversation

@biancadanforth
Copy link
Contributor

@biancadanforth biancadanforth commented Feb 18, 2026

Because:

  • Django 4.2 LTS is hitting EOL in April 2026.
  • We need to upgrade to the next LTS, which is Django 5.2.
  • See upgrade plan for more information.

This PR:

  • Upgrades Django in a stepwise fashion from 4.2 -> 5.0 -> 5.1 -> 5.2, checking for test failures at each step.
  • Fixes any test-related issues -- there were no actual test failures at any upgrade step -- only filter warnings to adjust.

Note: I also ran django-upgrade with a target version of 5.0 as part of working on the first upgrade step from 4.2 to 5.0, but no upgrade issues were found.

@biancadanforth biancadanforth requested a review from a team as a code owner February 18, 2026 19:20
Copy link
Contributor

@smarnach smarnach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the Django version number, this looks good to me.

When verifying this locally, I noticed the Google dependencies are somehow messed up, and some of the transitive dependencies don't meet the requirements of the packages depending on them. I have a fix for this locally, but I'd like to get this PR merged before applying it. Once this PR and the dependency resolution fix are merged, I can do the uv migration.

@biancadanforth biancadanforth changed the title bug-1958216: upgrade Django to 5.2 bug-1958216: upgrade Django to 5.2.11 Feb 19, 2026
@biancadanforth biancadanforth added this pull request to the merge queue Feb 19, 2026
Merged via the queue into main with commit 19c5ce9 Feb 19, 2026
1 check passed
@biancadanforth biancadanforth deleted the cringe-178 branch February 19, 2026 16:46
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