Commit dde9c6b5 authored by Trisha Angel Millena's avatar Trisha Angel Millena

edited views.py: added missingauthors

parent 1bc8589a
......@@ -12,7 +12,7 @@ def index(request):
for post in posts:
for reply in replies:
if reply.post.title == post.title:
welcoming = welcoming + post.title + " by " + " posted " + post.pub_datetime.strftime('%I:%M %p') + ":<br>" + post.body + "<br>" + "Reply by " + " posted " + reply.pub_datetime.strftime('%I:%M %p') + ":<br>" + reply.body + "<br>"
welcoming = welcoming + post.title + " by " + " posted " + post.pub_datetime.strftime('%I:%M %p') + ":<br>" + post.body + "<br>"
welcoming = welcoming + post.title + " by " + post.author.first_name + " " + post.author.last_name + " posted " + post.pub_datetime.strftime('%I:%M %p') + ":<br>" + post.body + "<br>" + "Reply by " + reply.author.first_name + " " + reply.author.last_name + " posted " + reply.pub_datetime.strftime('%I:%M %p') + ":<br>" + reply.body + "<br>"
welcoming = welcoming + post.title + " by " + post.author.first_name + " " + post.author.last_name + " posted " + post.pub_datetime.strftime('%I:%M %p') + ":<br>" + post.body + "<br>"
return HttpResponse(welcoming)
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