[ERP-4536] Django 5.2#777
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request upgrades the Django framework from version 4.2.27 to 5.2.1, which is a major version jump requiring several compatibility changes throughout the codebase.
Changes:
- Upgraded Django from 4.2.27 to 5.2.1 and updated related dependencies
- Migrated from pip/requirements.txt to uv/pyproject.toml for dependency management
- Updated datetime handling to use timezone-aware functions throughout the codebase
- Modified logout functionality to use POST method (Django 5.x security requirement)
Reviewed changes
Copilot reviewed 56 out of 86 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Added new build configuration with uv and all project dependencies |
| requirements/*.txt | Removed old pip requirement files in favor of pyproject.toml |
| rdrf/rdrf/settings.py | Updated storage backend configuration for Django 5.x STORAGES setting |
| rdrf/rdrf/templates/rdrf_cdes/navbar_links.html | Changed logout link to POST form with CSRF protection |
| rdrf/rdrf/auth/views.py | Updated two-factor auth decorators to use method_decorator |
| rdrf/**/models.py, views.py | Replaced datetime.datetime.now() with timezone.now() for timezone awareness |
| docker/*/Dockerfile | Migrated from pip to uv package manager |
| docker-compose*.yml | Removed obsolete version declarations |
| rdrf/registry/patients/migrations/ | Added Django 5.2 migrations for history_date field updates |
| clients/xnat/generated/ | Updated OpenAPI generator from 7.4.0 to 7.18.0 |
| rdrf/rdrf/testing/behaviour/ | Updated Selenium WebDriver calls for compatibility |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.