fix: Support Django 5.2 LTS#325
Conversation
justinmayer
commented
Jan 5, 2026
- Support Django 5.2 LTS
- Test on Python 3.14 in CI
- Drop support for EOL Python 3.8 & 3.9
- Upgrade GitHub Actions to latest versions
The `BaseUserManager.make_random_password()` method was deprecated in Django 4.2 and completely removed in Django 5.1, causing a test error on Django 5.2 and higher. This change adds the `make_random_password()` method to the UserManager class in order to resolve this error.
Django 5.0+ changed the logout view to no longer accept GET requests and only accept POST requests for security reasons: https://code.djangoproject.com/ticket/15619
In Django 5.x, the `last_login` and `date_joined` datetime fields were being treated as changed even when not modified, causing tests to fail. These fields should not be manually editable, since `last_login` is automatically updated when a user logs in, and `date_joined` is set on creation. This changes these two fields in the UserAdmin class to be read-only, which prevents these fields from being included in form submissions and ensures they are displayed as read-only in the admin interface.
1b1ab6b to
7c56a5a
Compare
7c56a5a to
ab8bbf8
Compare
|
Hey Andrew! I made some changes to support Django 5.2 LTS. I see something about token-less CodeCov uploads not being supported in forked repositories; I don't use CodeCov and thus don't know anything about resolving that. Aside from that, could you please review the changes and let me know what else is needed to get this merged? |
|
@justinmayer , thank you very much for the work and the PR! I see the codecov issue. I'm going to push directly to this branch to see if I can ensure future pull-requests can benefit from coverage data. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #325 +/- ##
==========================================
Coverage 100% 100%
==========================================
Files 9 9
Lines 173 177 +4
Branches 9 9
==========================================
+ Hits 173 177 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|