fix: resolved attribute error by repopulating the replies and posts

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