Author - applebiter/gnatwriter GitHub Wiki
The Author class represents an author of a Story.
Attributes
The attributes that are mapped to the authors table in the database:
id: intThe Author IDuser_id: intThe system user or the User currently logged inis_pseudonym: boolIndicates whether the Author name is a pseudonymname: strThe Author nameinitials: strThe Author's initialscreated: strThis is actually a Python Datetime object except for input and outputmodified: strThis is also a Python Datetime object and is updated with every update of the Author
The complex attributes supplied by the ORM:
user: UserThe User class is associated with theuserstable in the database.stories: List[AuthorStory]AuthorStory objects point to the Stories the Author is associated with in the database. The AuthorStory class is associated with theauthors_storiestable in the database
serialize()
serialize ( ) -> dict Only the attributes mapped to the authors table will be present in the returned dictionary.