Got Place object in get request.
This commit is contained in:
		@@ -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()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user