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

Fixed the spacing for the author's name

parent dcd708a5
...@@ -9,7 +9,7 @@ def forumIndex(request): ...@@ -9,7 +9,7 @@ def forumIndex(request):
forum_output = "Widget's Forum <br><br> Forum Posts:<br>" forum_output = "Widget's Forum <br><br> Forum Posts:<br>"
for post in forum: for post in forum:
forum_output = (forum_output + post.title + " by " + post.author.first_name + post.author.last_name + forum_output = (forum_output + post.title + " by " + post.author.first_name + " " + post.author.last_name +
" posted " + post.pub_datetime.strftime('%m/%d/%Y, %I:%M %p') + ":<br>" + " posted " + post.pub_datetime.strftime('%m/%d/%Y, %I:%M %p') + ":<br>" +
post.body + "<br>" post.body + "<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