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

Fix error in field in Django 5.1 #215

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

philgyford
Copy link
Contributor

ManyToManyRel.is_hidden() has been removed in Django 5.1, leaving ManyToManyRel.hidden. This resulted in a fatal error when using django-sortedm2m in Django 5.1 where is_hidden() is used in sortedm2m/fields.py.

This commit replaces that call with use of the hidden property.

I haven't been able to run the tests on this. I've given the test_project a quick go with both Django 4.2 and 5.1 and it successfully starts up, which it didn't before the change.

For #214

`ManyToManyRel.is_hidden()` has been removed in Django 5.1, leaving
`ManyToManyRel.hidden`. This resulted in a fatal error when using
django-sortedm2m in Django 5.1 where `is_hidden()` is used in
`sortedm2m/fields.py`.

This commit replaces that call with use of the `hidden` property.

For jazzband#214
@clintonb clintonb merged commit 2b23770 into jazzband:master Aug 11, 2024
10 of 14 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.

2 participants