django-taggit-serializer
django-taggit-serializer copied to clipboard
Not work with django-taggit==2.0.0
django-taggit==2.0.0
django-taggit-serializer==0.1.7
class Blabla(TaggitSerializer, serializers.ModelSerializer):
tags = TagListSerializerField()
...
...site-packages/taggit_serializer/serializers.py", line 108, in _save_tags
getattr(tag_object, key).set(*tag_values)
TypeError: set() takes 2 positional arguments but 3 were given
All good with django-taggit==1.5.1
Thanks for this, had the same problem and had been trying to work out what I was doing wrong for ages.
This is due to the breaking change where set
now takes a list instead of varargs.
A fix can be done by changing line 107 from serializers.py to getattr(tag_object, key).set(tag_values)
.
I have since opened a pr #55.