diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 878d3b9..956d89c 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -46,14 +46,14 @@ class SignUpView(CreateView): template_name = 'signup.html' class PlaceListView(IsAuthenticated, View): - def get(request): + def get(self, request): context = { 'place_list': Place.objects.all() } return render(request, 'place/place_list.html', context) class PlaceDetailView(IsAuthenticated, View): - def get(request, pk): + def get(self, request, pk): context = { 'place': Place.objects.get(pk=pk) }