Commit 6e1c296a authored by Andre Dalwin C. Tan's avatar Andre Dalwin C. Tan 💬

Implemented models, views, and admin for Forum

parent 61d4015a
......@@ -10,7 +10,7 @@ class ForumPost(models.Model):
author = models.CharField(max_length = 100)
# If connecting to WidgetUser
# author = models.ForeignKey(WidgetUser, on_delete = models.CASCADE)
pub_datetime = models.DateTimeField("Publication Date and Time")
pub_datetime = models.DateTimeField("Published Date and Time")
def __str__(self):
return self.title
......@@ -22,7 +22,7 @@ class Reply(models.Model):
author = models.CharField(max_length = 100)
# If connecting to WidgetUser
# author = models.ForeignKey(WidgetUser, on_delete = models.CASCADE)
pub_datetime = models.DateTimeField("Publication Date and Time")
pub_datetime = models.DateTimeField("Published Date and Time")
def __str__(self):
return self.body
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