-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
Bug with prefetch_related #490
Comments
I can confirm that this bug still exists almost 4 years after posting the issue, I ended up creating my own tags implementation because prefetching was very important for my use-case, I published a gist explaining how I solved my issue so i'll post it here to help anyone who might stumble upon it while facing the same issue. https://gist.github.com/imhmdb/af57c9fc4db69bfdfdb900810744e678 |
This occurs because django-taggit/taggit/managers.py Line 114 in 954d836
|
Thanks for looking into this. A PR that contains a test is welcome and will be reviewed. |
Thanks a lot for the patch and the tests, @fumuumuf ! 👍 |
This is now fixed with #646 Thank You everyone for your work, waited almost 3 years for this :) |
Posted this few weeks ago to the mailinglist, but seems that it's dead so re-posting here. (Maybe it would be a good idea to retire the mailinglist or post a notification there that it's not been actively followed?)
So, I have a following model with tags:
tags = TaggableManager(through='knuckles.UUIDTaggedItem', blank=True)
where UUIDTaggedItem is:
When I query for the tags I get following:
So when using prefetch_related, I always get empty tags. Not sure if I'm doing something wrong here or if this is a bug?
I'm using Django version 1.11 and django-taggit version 0.22.1
The text was updated successfully, but these errors were encountered: