mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-15 19:55:33 +00:00
Merge pull request #413 from mouse-reeve/author-name-dedup
Use author name as a deduplication field
This commit is contained in:
commit
7081c0bb00
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue