Adds quotes
This commit is contained in:
parent
5b7f29c45b
commit
a88cf2b6dd
16 changed files with 190 additions and 7 deletions
|
@ -56,6 +56,17 @@ class Comment(Status):
|
|||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
class Quotation(Status):
|
||||
''' like a review but without a rating and transient '''
|
||||
book = models.ForeignKey('Edition', on_delete=models.PROTECT)
|
||||
quote = models.TextField()
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
self.status_type = 'Quotation'
|
||||
self.activity_type = 'Note'
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
class Review(Status):
|
||||
''' a book review '''
|
||||
name = models.CharField(max_length=255, null=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue