Added missing self to get method.
This commit is contained in:
parent
759c42279d
commit
1130ee70d9
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user