Commit 4f3aa909 authored by Michael Lopez's avatar Michael Lopez

Made the announcements views.py display display the data from Announcement and Reaction models

parent 56ef1a29
from django.shortcuts import render from django.shortcuts import render
from django.http import HttpResponse from .models import Announcement, Reaction
def pageview(request): def pageview(request):
return HttpResponse() announcement = Announcement.objects.all()
reaction = Reaction.objects.all()
return render(request, 'announcements/announcement_board.html',
{'departments': announcement, 'widgetusers': reaction})
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