mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-06 06:12:26 +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?
|
# idk probably other keys would be useful here?
|
||||||
born = fields.DateTimeField(blank=True, null=True)
|
born = fields.DateTimeField(blank=True, null=True)
|
||||||
died = 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(
|
aliases = fields.ArrayField(
|
||||||
models.CharField(max_length=255), blank=True, default=list
|
models.CharField(max_length=255), blank=True, default=list
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue