Comments on reports
This commit is contained in:
parent
46581e37e2
commit
9245b9d9ca
3 changed files with 36 additions and 6 deletions
|
@ -30,3 +30,8 @@ class ReportComment(BookWyrmModel):
|
|||
user = models.ForeignKey("User", on_delete=models.PROTECT)
|
||||
note = models.TextField()
|
||||
report = models.ForeignKey(Report, on_delete=models.PROTECT)
|
||||
|
||||
class Meta:
|
||||
""" sort comments """
|
||||
|
||||
ordering = ("-created_date",)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue