Compare commits

..

No commits in common. "89060f4ce09ae5ca4057afa9ebb54fb5578a24fb" and "fe97e02e41e8c9bd6c1333711d1cb37fc676b110" have entirely different histories.

View File

@ -101,7 +101,8 @@ 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.objects.get(pk=pk) place = Place(pk=pk)
print(pk, place.name)
place_delete_form = PlaceDeleteForm() place_delete_form = PlaceDeleteForm()
context = {'place': place, 'form': place_delete_form} context = {'place': place, 'form': place_delete_form}