From c4b9b82000b9e91875229803b39584dd5c8e5a39 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 20 Dec 2020 13:31:11 -0800 Subject: [PATCH] Use author name as a deduplication field I feel iffy about this but openlibrary has hella duplicates --- bookwyrm/models/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/models/author.py b/bookwyrm/models/author.py index 911cc109..a2eac507 100644 --- a/bookwyrm/models/author.py +++ b/bookwyrm/models/author.py @@ -21,7 +21,7 @@ class Author(ActivitypubMixin, BookWyrmModel): # idk probably other keys would be useful here? born = fields.DateTimeField(blank=True, null=True) died = fields.DateTimeField(blank=True, null=True) - name = fields.CharField(max_length=255) + name = fields.CharField(max_length=255, deduplication_field=True) aliases = fields.ArrayField( models.CharField(max_length=255), blank=True, default=list )