From 1d31b88fa379649eb96c452fff6ffae43724c2ee Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 22 Aug 2024 16:30:25 -0700 Subject: [PATCH] fix migration failing when Tag name is empty --- archivebox/core/migrations/0059_tag_id.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/core/migrations/0059_tag_id.py b/archivebox/core/migrations/0059_tag_id.py index 004ac541..5b1824ab 100644 --- a/archivebox/core/migrations/0059_tag_id.py +++ b/archivebox/core/migrations/0059_tag_id.py @@ -50,7 +50,7 @@ def update_archiveresult_ids(apps, schema_editor): num_total = Tag.objects.all().count() print(f' Updating {num_total} Tag.id, ArchiveResult.uuid values in place...') for idx, tag in enumerate(Tag.objects.all().iterator()): - assert tag.name + assert tag.slug, f'Tag.slug must be defined! You have a Tag(id={tag.pk}) missing a slug!' tag.abid_prefix = 'tag_' tag.abid_ts_src = 'self.created' tag.abid_uri_src = 'self.slug'