Commit e72ef795 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

Edited calendar.html template

parent aeb53eca
...@@ -6,8 +6,8 @@ from .forms import AddEventForm ...@@ -6,8 +6,8 @@ from .forms import AddEventForm
# calendar view for FBV implmentation # calendar view for FBV implmentation
def calendar_view(request): def calendar_view(request):
calendars = Event.objects.all().order_by('id') events = Event.objects.all().order_by('id')
return render(request, calendar.html, {'calendars', calendars}) return render(request, calendar.html, {'events', events})
#calendar Detail View for CBV Implementation #calendar Detail View for CBV Implementation
class EventDetailView(DetailView): class EventDetailView(DetailView):
......
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