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)
class Rating(Comment):
''' a full book review '''
rating: int = None
''' just a star rating '''
rating: int
content: str = None
type: str = 'Rating'