The taggit APIs don't behave quite the way they are documented. You are supposed to be able to load Tag objects in into the add method, but you can't. Just the name string instead.
@@ -22,7 +22,8 @@ def copy_tags(apps, schema_editor):
def retag_partners(apps, schema_editor):
for partner in Partner.objects.all():
old_tags = partner.old_tags.all()
- partner.tags.set(old_tags, clear=True)
+ for old_tag in old_tags:
+ partner.tags.add(old_tag.name)
partner.save()
# Delete the old tag data
