Adjusted html format

parent 0ed09593
......@@ -15,10 +15,11 @@ def index(request):
for replypost in Reply.objects.all():
if replypost.forum_post == post:
return_string += '<li>Reply by {} posted {}:<br>{}</li>'.format(
replypost.author, replypost.pub_datetime.strftime('%m/%d/%Y %H:%M %p'), replypost.body
replypost.author, replypost.pub_datetime.strftime('%m/%d/%Y %I:%M %p'), replypost.body
)
return_string += '<br>'
return_string += '<br></ul></body>'
return_string += '</ul></body>'
html_string = '<html>{}</html>'.format(return_string)
......
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