Makes rating field mandatory on ratings

This commit is contained in:
Mouse Reeve 2021-02-25 10:17:24 -08:00
parent 42ca32a985
commit 6d7e063b81

View file

@ -67,7 +67,7 @@ class Review(Comment):
@dataclass(init=False) @dataclass(init=False)
class Rating(Comment): class Rating(Comment):
''' a full book review ''' ''' just a star rating '''
rating: int = None rating: int
content: str = None content: str = None
type: str = 'Rating' type: str = 'Rating'