Skip to content

Conversation

@Barthelemy
Copy link
Contributor

@Barthelemy Barthelemy commented Apr 16, 2025

fix #88

@shellfly
Copy link
Owner

@Barthelemy, thanks for the PR. Based on the document, it needs a migration to rename the index. Could you add it as well?
Also, please update the CI config to include tests for Django 5.2

@Barthelemy
Copy link
Contributor Author

Thanks for the comment. I did not realize that the migration should be part of the PR, sorry about that.
I will also update the CI config.

@Barthelemy
Copy link
Contributor Author

I have added the migration that Django generated. I am not sure why there is the AlterField though.

@shellfly
Copy link
Owner

I have added the migration that Django generated. I am not sure why there is the AlterField though.

It's probably related to this change. Could you set DEFAULT_AUTO_FIELD before generating the migration so that the migration is clean for this PR

@Barthelemy
Copy link
Contributor Author

Things are never as simple as we thought...

Given that the django versions still supported are 4.2, 5.1 and 5.2 I would propose to keep only the support for 4.2.20, 5.1.9, 5.2.1. RenameIndex was introduced in 4.1.
However that might not be what you want ?

@shellfly
Copy link
Owner

shellfly commented May 3, 2025

@Barthelemy, please go ahead and update the supported versions. Users can always use the previous tag version if needed.

@jacquemard
Copy link

Hello, thanks for the work! Quick question: what is the current status for this PR? Do you plan to merge it soon @shellfly ?

@shellfly
Copy link
Owner

shellfly commented Dec 1, 2025

@Barthelemy, there were some errors in the CI, but the logs have expired. I just added the manual trigger for the CI workflow. Can you merge the update to your branch so that we can re-run the CI and fix the errors to move on.

@Barthelemy
Copy link
Contributor Author

@shellfly I am sorry, I don't understand what I should do. I should merge what update into my branch ?

@shellfly
Copy link
Owner

shellfly commented Dec 1, 2025

@Barthelemy, I just triggered a CI run, and it surfaced some migration-related errors—possibly due to the deprecated index_together. When you have a moment, could you try running squashmigrations and run the tests locally to verify it?

added the missing DEFAULT_AUTO_FIELD to the tests
@Barthelemy
Copy link
Contributor Author

@shellfly Perhaps it is better now

@shellfly shellfly merged commit 08344f7 into shellfly:master Dec 2, 2025
3 checks passed
@shellfly
Copy link
Owner

shellfly commented Dec 2, 2025

@Barthelemy @jacquemard Thanks for your work! A new release has been created, and the updated version is now live on PyPI.

@jacquemard
Copy link

Perfect that will really help me, thanks a lot both of you for your work !

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.

Incompatible with Django 5.2

3 participants