resolved issues with formatting

parent 43c4e584
...@@ -12,7 +12,7 @@ def index(request): ...@@ -12,7 +12,7 @@ def index(request):
replies = Reply.objects.all() replies = Reply.objects.all()
for post in posts: for post in posts:
forum_view += "<br> {} by [First name Last Name] dated {}: <br> {}".\ forum_view += "<br> {} by {} {} dated {}: <br> {}".\
format( format(
post.post_title, post.post_title,
post.author.first_name, post.author.first_name,
...@@ -22,7 +22,7 @@ def index(request): ...@@ -22,7 +22,7 @@ def index(request):
) )
for reply in replies: for reply in replies:
forum_view += '<br> Reply by [First name Last name] dated {}: <br> {}'.\ forum_view += '<br> Reply by {} {} dated {}: <br> {}'.\
format( format(
reply.author.first_name, reply.author.first_name,
reply.author.last_name, reply.author.last_name,
......
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