admin.ModelAdmin.response_delete()

ModelAdmin.response_delete(request, obj_display, obj_id) [source]

Determines the HttpResponse for the delete_view() stage.

response_delete is called after the object has been deleted. You can override it to change the default behavior after the object has been deleted.

obj_display is a string with the name of the deleted object.

obj_id is the serialized identifier used to retrieve the object to be deleted.

doc_Django
2016-10-09 18:33:55
Comments
Leave a Comment

Please login to continue.