Commit a0528e0b authored by Jiuvi Anne Hu's avatar Jiuvi Anne Hu

Update views.py

parent 7c265b3a
......@@ -23,7 +23,7 @@ def index(request):
{}".format(announced.title, announced.author.first_name,
announced.author.last_name,
convert_to_localtime(announced.pub_datetime), announced.body)
for reacts in announced.reaction.all():
for reacts in announced.reaction_set.all():
html_string_2 += "{}: {}<br />".format(reacts.name, reacts.tally)
html_string_final = html_string_1 + html_string_2 + "</html>"
......
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