Commit 336d59e7 authored by Mary Adelaide A. Salto's avatar Mary Adelaide A. Salto
parents a84414b2 7d070323
...@@ -14,7 +14,7 @@ class ForumPost(models.Model): ...@@ -14,7 +14,7 @@ class ForumPost(models.Model):
class Reply(models.Model): class Reply(models.Model):
post = models.ForeignKey(ForumPost, on_delete=models.CASCADE) post = models.ForeignKey(ForumPost, on_delete=models.CASCADE, null=True)
body = models.TextField() body = models.TextField()
author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE) author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE)
pub_datetime = models.DateTimeField() pub_datetime = models.DateTimeField()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment