forked from mirrors/bookwyrm
Adds inventaire id to book data model
This commit is contained in:
parent
f30d05acfc
commit
295842badd
2 changed files with 11 additions and 6 deletions
|
@ -24,9 +24,10 @@ class Book(ActivityObject):
|
|||
firstPublishedDate: str = ""
|
||||
publishedDate: str = ""
|
||||
|
||||
openlibraryKey: str = ""
|
||||
librarythingKey: str = ""
|
||||
goodreadsKey: str = ""
|
||||
openlibraryKey: str = None
|
||||
inventiareId: str = None
|
||||
librarythingKey: str = None
|
||||
goodreadsKey: str = None
|
||||
|
||||
cover: Image = None
|
||||
type: str = "Book"
|
||||
|
@ -68,8 +69,9 @@ class Author(ActivityObject):
|
|||
died: str = None
|
||||
aliases: List[str] = field(default_factory=lambda: [])
|
||||
bio: str = ""
|
||||
openlibraryKey: str = ""
|
||||
librarythingKey: str = ""
|
||||
goodreadsKey: str = ""
|
||||
openlibraryKey: str = None
|
||||
inventiareId: str = None
|
||||
librarythingKey: str = None
|
||||
goodreadsKey: str = None
|
||||
wikipediaLink: str = ""
|
||||
type: str = "Author"
|
||||
|
|
|
@ -19,6 +19,9 @@ class BookDataModel(ObjectMixin, BookWyrmModel):
|
|||
openlibrary_key = fields.CharField(
|
||||
max_length=255, blank=True, null=True, deduplication_field=True
|
||||
)
|
||||
inventaire_id = fields.CharField(
|
||||
max_length=255, blank=True, null=True, deduplication_field=True
|
||||
)
|
||||
librarything_key = fields.CharField(
|
||||
max_length=255, blank=True, null=True, deduplication_field=True
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue