Commit dfa9afb0 authored by RJC's avatar RJC

modified models.py

parent 22037e05
...@@ -13,7 +13,7 @@ class ForumPost(models.Model): ...@@ -13,7 +13,7 @@ class ForumPost(models.Model):
pub_datetime = models.DateTimeField(auto_now_add=True) pub_datetime = models.DateTimeField(auto_now_add=True)
class Reply(models.Model): class Reply(models.Model):
forumpost = models.ForeignKey(ForumPost, related_name='reply', on_delete=models.CASCADE, null=True)
body = models.TextField(blank=True, null=True) body = models.TextField(blank=True, null=True)
author = models.ForeignKey(WidgetUser, related_name='reply', on_delete=models.CASCADE, null=True) author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE, null=True)
pub_datetime = models.DateTimeField(auto_now_add=True) pub_datetime = models.DateTimeField(auto_now_add=True)
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