Commit bf684d21 authored by Jean-Baptiste's avatar Jean-Baptiste

Merge branch '168-duplicate' into 'master'

update: remove duplicates on m2m

Closes #168

See merge request !102
parents b2d44490 af9b0d73
Pipeline #5353 passed with stage
in 1 minute and 28 seconds
......@@ -618,4 +618,5 @@ class LDPSerializer(HyperlinkedModelSerializer):
saved_item = self.internal_create(validated_data=item, model=manager.model)
if getattr(manager, 'through', None) is not None and manager.through._meta.auto_created:
manager.remove(saved_item)
manager.add(saved_item)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment