Got Place object in get request.

This commit is contained in:
Marcus Scholz 2020-08-07 12:27:35 +02:00
parent fe97e02e41
commit 602a8bb1e6

View File

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