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

Preview breaks on latest 6.2 version #182

Closed
MasonLyons opened this issue Jan 4, 2024 · 3 comments · Fixed by #183
Closed

Preview breaks on latest 6.2 version #182

MasonLyons opened this issue Jan 4, 2024 · 3 comments · Fixed by #183

Comments

@MasonLyons
Copy link

MasonLyons commented Jan 4, 2024

When previewing the page using the latest 6.2 version we get the following error

'_ClusterTaggableManager' object has no attribute '_remove_prefetched_objects'

The issue disappears on 6.1.

Python: 3.11
Django: 4.2.9
Wagtail: 5.2.2

@gasman
Copy link
Contributor

gasman commented Jan 4, 2024

Thanks for the report!

What version of django-taggit are you running? Looks like _remove_prefetched_objects has existed since django-taggit 3.1.0 - jazzband/django-taggit@3a5163a

@MasonLyons
Copy link
Author

We're using 2.1.0
The wagtail setup .py uses
"django-taggit>=2.0,<5.1",
we were automatically pulling it from there with pip-compile
I've tweaked our process so we pull the most recent version now but it may still need an upgrade in wagtail to prevent it.
Thanks.

gasman added a commit that referenced this issue Jan 4, 2024
@gasman
Copy link
Contributor

gasman commented Jan 4, 2024

Have now released 6.2.1 with #183, which makes a version check before calling _remove_prefetched_objects. Will also bump the dependency in Wagtail's setup.py, although since that's technically a breaking change (people might be relying on django-taggit's pre-3.x handling of slugs) this will only take effect in the upcoming Wagtail 6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants