-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
TaggableManager.set() API does not match RelatedManager.set() #686
Comments
feel free to dig in and start a WIP PR to improve it? |
I'm tempted to qualify this as a bug, due to not following SOLID. Thanks for pointing this out. A simple base case here would be to take params, but throw a |
I agree 100% that this is a bug. I've now been burned by this difference in APIs between |
@coredumperror feel free to send in a PR, I'll gladly review it to get it in. I think when I made the original comment I didn't see a straightforward way of getting it to work |
I've been facing this issue trying to use a "tags" field together with the library "django-import-export". It's been impossible. |
TaggableManager has
set(*tags, clear=False)
while RelatedManager expects the tag objects as a list ieset(tags, bulk=True, clear=False, through_defaults=None)
.Would it be possible to support setting tags as a list/tuple too? The different interface makes it harder to plug that TaggableManager into other django libraries.
The text was updated successfully, but these errors were encountered: