Compare commits
2 Commits
fe97e02e41
...
89060f4ce0
Author | SHA1 | Date | |
---|---|---|---|
89060f4ce0 | |||
602a8bb1e6 |
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user