minor fix
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 4 Jun 2024 09:18:37 +0000 (11:18 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 4 Jun 2024 09:18:37 +0000 (11:18 +0200)
src/catalogue/models/book.py

index 9e0ec50..86010df 100644 (file)
@@ -91,7 +91,7 @@ class Book(models.Model):
     tagged = managers.ModelTaggedItemManager(Tag)
     tags = managers.TagDescriptor(Tag)
     tag_relations = GenericRelation(Tag.intermediary_table_model)
     tagged = managers.ModelTaggedItemManager(Tag)
     tags = managers.TagDescriptor(Tag)
     tag_relations = GenericRelation(Tag.intermediary_table_model)
-    translators = models.ManyToManyField(Tag)
+    translators = models.ManyToManyField(Tag, blank=True)
 
     html_built = django.dispatch.Signal()
     published = django.dispatch.Signal()
 
     html_built = django.dispatch.Signal()
     published = django.dispatch.Signal()