-
Notifications
You must be signed in to change notification settings - Fork 130
FEAT: Support Django 5.1 - Remove index_together usage and update CI/Test Configs #452
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for Django 5.1 by updating dependency/version requirements, updating tests to verify index creation via Meta.indexes instead of index_together, and adding conditional logic to legacy index_together handling for compatibility.
- Updated dependency declarations (tox.ini, setup.py, classifiers) to include Django 5.1.
- Modified test assertions (test_indexes.py) to check explicit index definitions via Meta.indexes.
- Added version checks in schema generation (mssql/schema.py) and provided new pipeline matrices (azure-pipelines.yml) to test against Django 5.1.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
tox.ini | Added Django 5.1 dependency range |
testapp/tests/test_indexes.py | Replaced index_together based tests with checks for Meta.indexes |
setup.py | Updated Django dependency range and classifiers |
mssql/schema.py | Added version checks for index_together handling; updated SQL generation comments |
azure-pipelines.yml | Extended pipeline matrix to include multiple Python versions with Django 5.1 support |
Comments suppressed due to low confidence (1)
azure-pipelines.yml:27
- [nitpick] Consider standardizing the matrix naming (e.g. without spaces) to ensure compatibility with downstream processing if these keys are referenced programmatically.
Python3.13 - Django 5.1:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, can we rename this PR to something like this - since there's no "replacement"?
FEAT: Support Django 5.1 - Remove index_together usage and update CI/Test Configs
This pull request introduces support for Django 5.1, updates compatibility checks for removed
index_together
, and adjusts testing and dependency configurations accordingly.Document link: TASK1 Removing Dependency On Index_together().loop
Ado link: https://sqlclientdrivers.visualstudio.com/mssql-django/_workitems/edit/37632