Compare commits

..

2 Commits

Author SHA1 Message Date
89060f4ce0 Removed debug output. 2020-08-07 12:27:54 +02:00
602a8bb1e6 Got Place object in get request. 2020-08-07 12:27:35 +02:00

View File

@ -101,8 +101,7 @@ class PlaceDeleteView(View):
#form_class = PlaceDeleteForm
def get(self, request, pk, *args, **kwargs):
place = Place(pk=pk)
print(pk, place.name)
place = Place.objects.get(pk=pk)
place_delete_form = PlaceDeleteForm()
context = {'place': place, 'form': place_delete_form}