forked from mirrors/bookwyrm
Makes rating field mandatory on ratings
This commit is contained in:
parent
42ca32a985
commit
6d7e063b81
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue