1
0
Fork 0

Add Website field to author

Authors have Websites. that might be interesting for BookWyrm users. Now there is a field specify the website of an author and it is shown tu users under the wikipedia link

Adds max char for ISFDB ID (6) and ISNI (19 - 16 plus three -)
This commit is contained in:
Jascha Ezra Urbach 2022-12-28 15:41:48 +01:00
parent cfbd0b97fc
commit 2d76595af6
No known key found for this signature in database
GPG key ID: A43A844B114F9B08
7 changed files with 54 additions and 3 deletions

View file

@ -17,12 +17,15 @@ class Author(BookDataModel):
max_length=255, blank=True, null=True, deduplication_field=True
)
isni = fields.CharField(
max_length=255, blank=True, null=True, deduplication_field=True
max_length=19, blank=True, null=True, deduplication_field=True
)
gutenberg_id = fields.CharField(
max_length=255, blank=True, null=True, deduplication_field=True
)
isfdb = fields.CharField(
max_length=6, blank=True, null=True, deduplication_field=True
)
website = fields.CharField(
max_length=255, blank=True, null=True, deduplication_field=True
)
# idk probably other keys would be useful here?

View file

@ -58,7 +58,7 @@ class BookDataModel(ObjectMixin, BookWyrmModel):
max_length=255, blank=True, null=True, deduplication_field=True
)
isfdb = fields.CharField(
max_length=255, blank=True, null=True, deduplication_field=True
max_length=6, blank=True, null=True, deduplication_field=True
)
search_vector = SearchVectorField(null=True)