BibliographyAuthor - applebiter/gnatwriter GitHub Wiki
The BibliographyAuthor class represents an author of a referenced work that is associated with a Story.
Attributes
The attributes associated with the authors_bibliographies
table in the database:
id: int
The BibliographyAuthor IDuser_id: int
The ID of the User who created this BibliographyAuthor in the databasebibliography_id: int
The ID of the Bibliography reference with which this author is associated in the databasename: str
The author's nameinitials: str
The author's initialscreated: str
The creation datetime of the database entry, stored in 'yyyy-mm-dd hh:mm:ss.f' format
The following, complex attributes are returned by the ORM:
user: User
The user who created this database entry. The User is associated with theusers
table in the database.reference: Bibliography
Thereference
attribute is lazy-loaded, and so is only accessible within the scope of the database Session where it is fetched.
serialize()
serialize ( ) -> dict
Only the attributes mapped to the authors_bibliographies
table will be present in the returned dictionary.