Runs black
This commit is contained in:
@ -295,11 +295,11 @@ class Review(Status):
|
||||
|
||||
|
||||
class ReviewRating(Review):
|
||||
''' a subtype of review that only contains a rating '''
|
||||
""" a subtype of review that only contains a rating """
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.rating:
|
||||
raise ValueError(
|
||||
'ReviewRating object must include a numerical rating')
|
||||
raise ValueError("ReviewRating object must include a numerical rating")
|
||||
return super().save(*args, **kwargs)
|
||||
|
||||
@property
|
||||
@ -307,7 +307,7 @@ class ReviewRating(Review):
|
||||
return 'Rated "{}": {:d} stars'.format(self.book.title, self.rating)
|
||||
|
||||
activity_serializer = activitypub.Rating
|
||||
pure_type = 'Note'
|
||||
pure_type = "Note"
|
||||
|
||||
|
||||
class Boost(ActivityMixin, Status):
|
||||
|
Reference in New Issue
Block a user