Commit 60ec3ddf authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited views.py

parent 8f1ed8d0
......@@ -3,11 +3,10 @@ from django.views.generic import DetailView, CreateView, UpdateView
from .models import Event, Location
from .forms import AddEventForm
# calendar view for FBV implmentation
def calendar_view(request):
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
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