Skip to content

Comments

Add django 4.2, 5.2 and 6.0 support, drop older versions#18

Merged
beachmachine merged 1 commit intobeachmachine:masterfrom
nezhar:django_52
Feb 9, 2026
Merged

Add django 4.2, 5.2 and 6.0 support, drop older versions#18
beachmachine merged 1 commit intobeachmachine:masterfrom
nezhar:django_52

Conversation

@nezhar
Copy link
Collaborator

@nezhar nezhar commented Feb 9, 2026

This pull request updates the project to support newer versions of Django and Python, and removes compatibility with older versions. It also modernizes the CI workflow and cleans up legacy code and references. The most important changes are grouped below.

Version Support Updates:

  • Added support for Django 4.2, 5.2, and 6.0, and Python 3.11, 3.12, 3.13, and 3.14. Dropped support for Django 3.2, 4.0, 4.1, and Python 3.7, 3.8, and 3.9. Updated setup.py, CHANGELOG.md, and README.md to reflect these changes.
  • Updated migration and test files to remove compatibility code for older Django/Python versions and to use newer APIs (e.g., timezone imports, test assertions).

CI Workflow Modernization:

  • Updated .github/workflows/tests.yml to use newer versions of GitHub Actions, Codecov, and Python/Django matrix. Removed experimental matrix and updated install commands for Django.

Documentation Improvements:

  • Updated README.md to clarify supported versions and reference latest Django documentation.

Code Cleanup:

  • Removed legacy middleware compatibility code for old Django versions in django_userforeignkey/middleware.py.
  • Removed deprecated USE_L10N setting from tests/test_project/settings.py.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.61%. Comparing base (9a85066) to head (4666415).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   90.03%   90.61%   +0.57%     
==========================================
  Files          10       10              
  Lines         281      277       -4     
==========================================
- Hits          253      251       -2     
+ Misses         28       26       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@beachmachine beachmachine merged commit b3dd361 into beachmachine:master Feb 9, 2026
11 checks passed
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.

3 participants