Modified view to showcase proper date.

parent d9690a62
...@@ -32,7 +32,7 @@ def getAnnouncementHeader(pk): ...@@ -32,7 +32,7 @@ def getAnnouncementHeader(pk):
authorLastName = Announcement.objects.get(pk=pk).author.last_name authorLastName = Announcement.objects.get(pk=pk).author.last_name
publicationDate = Announcement.objects.get(pk=pk).pub_date publicationDate = Announcement.objects.get(pk=pk).pub_date
announcementBody = Announcement.objects.get(pk=pk).announcement_body announcementBody = Announcement.objects.get(pk=pk).announcement_body
announcementFirstLine = "{} by {} {} dated {}<br/>" .format(announcementTitle, authorFirstName, authorLastName, publicationDate) announcementFirstLine = "{} by {} {} dated {}:<br/>" .format(announcementTitle, authorFirstName, authorLastName, publicationDate)
announcementSecondLine = "{}<br/>" .format(announcementBody) announcementSecondLine = "{}<br/>" .format(announcementBody)
announcementHeader += announcementFirstLine + announcementSecondLine announcementHeader += announcementFirstLine + announcementSecondLine
......
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