Got Place object in get request.
This commit is contained in:
parent
fe97e02e41
commit
602a8bb1e6
@ -101,7 +101,7 @@ class PlaceDeleteView(View):
|
|||||||
#form_class = PlaceDeleteForm
|
#form_class = PlaceDeleteForm
|
||||||
|
|
||||||
def get(self, request, pk, *args, **kwargs):
|
def get(self, request, pk, *args, **kwargs):
|
||||||
place = Place(pk=pk)
|
place = Place.objects.get(pk=pk)
|
||||||
print(pk, place.name)
|
print(pk, place.name)
|
||||||
place_delete_form = PlaceDeleteForm()
|
place_delete_form = PlaceDeleteForm()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user