Edited views.py so that the announcements appear by order of newest

parent 1f4f8b35
...@@ -7,7 +7,7 @@ def index(request): ...@@ -7,7 +7,7 @@ def index(request):
return HttpResponse('This is the Announcement Board!') return HttpResponse('This is the Announcement Board!')
def announcements(request): def announcements(request):
all_announcements = models.Announcement.objects.order_by("pub_date") all_announcements = models.Announcement.objects.order_by("-id")
context = { context = {
"all_announcements": all_announcements "all_announcements": all_announcements
} }
......
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