Commit eb9489bb authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Fixed the syntax of accessing the forum_post.title

parent 447e9526
...@@ -14,7 +14,7 @@ def forumIndex(request): ...@@ -14,7 +14,7 @@ def forumIndex(request):
post.body + "<br>" post.body + "<br>"
) )
for reply in replies: for reply in replies:
if reply.forum_posts.title == post.title: if reply.forum_post.title == post.title:
forum_output = (forum_output + "Reply by " + reply.author.first_name + " " + reply.author.last_name forum_output = (forum_output + "Reply by " + reply.author.first_name + " " + reply.author.last_name
+ " posted " + reply.pub_datetime.strftime('%m/%d/%Y, %I:%M %p') + ":<br>" + + " posted " + reply.pub_datetime.strftime('%m/%d/%Y, %I:%M %p') + ":<br>" +
reply.body + "<br><br>" reply.body + "<br><br>"
......
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