Commit 793c4260 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited views.py

parent 1d517f42
...@@ -7,7 +7,7 @@ from .forms import AddEventForm ...@@ -7,7 +7,7 @@ from .forms import AddEventForm
# calendar view for FBV implmentation # calendar view for FBV implmentation
def calendar_view(request): def calendar_view(request):
events = Event.objects.all().order_by('id') events = Event.objects.all().order_by('id')
return render(request, calendar.html, {'events', events}) 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