Skip to content
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

Change to new index_together syntax #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pcarn
Copy link
Contributor

@pcarn pcarn commented Apr 16, 2024

Django has deprecated index_together. It will be removed in Django 5.1.

On my project I get this warning

/opt/venvs/web/lib/python3.11/site-packages/django/db/models/options.py:210: RemovedInDjango51Warning: 'index_together' is deprecated. Use 'Meta.indexes' in 'softdelete.ChangeSet' instead.
  warnings.warn(
/opt/venvs/web/lib/python3.11/site-packages/django/db/models/options.py:210: RemovedInDjango51Warning: 'index_together' is deprecated. Use 'Meta.indexes' in 'softdelete.SoftDeleteRecord' instead.
  warnings.warn(

https://docs.djangoproject.com/en/5.0/ref/models/options/#django.db.models.Options.indexes

Django has deprecated `index_together`.
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.

None yet

1 participant