mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-20 21:32:06 +02:00
fix migration creating conflicting tags based on slug
This commit is contained in:
@@ -17,7 +17,7 @@ def forwards_func(apps, schema_editor):
|
||||
tag_set.discard("")
|
||||
|
||||
for tag in tag_set:
|
||||
to_add, _ = TagModel.objects.get_or_create(name=tag, slug=slugify(tag))
|
||||
to_add, _ = TagModel.objects.get_or_create(name=tag, defaults={'slug': slugify(tag)})
|
||||
snapshot.tags.add(to_add)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user