Adds ReviewRating model
I can't just calling Rating because that would clash with the rating field
This commit is contained in:
@ -50,6 +50,13 @@ class Comment(Note):
|
||||
type: str = 'Comment'
|
||||
|
||||
|
||||
@dataclass(init=False)
|
||||
class Quotation(Comment):
|
||||
''' a quote and commentary on a book '''
|
||||
quote: str
|
||||
type: str = 'Quotation'
|
||||
|
||||
|
||||
@dataclass(init=False)
|
||||
class Review(Comment):
|
||||
''' a full book review '''
|
||||
@ -59,7 +66,8 @@ class Review(Comment):
|
||||
|
||||
|
||||
@dataclass(init=False)
|
||||
class Quotation(Comment):
|
||||
''' a quote and commentary on a book '''
|
||||
quote: str
|
||||
type: str = 'Quotation'
|
||||
class Rating(Comment):
|
||||
''' a full book review '''
|
||||
rating: int = None
|
||||
content: str = None
|
||||
type: str = 'Rating'
|
||||
|
Reference in New Issue
Block a user