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)
|
@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'
|
||||||
|
|
Loading…
Reference in a new issue