[英]display a confirmation django admin view
Will be possible to display a confirmation hearing to modify a record in a table, as is done when you delete a record? 是否可以显示确认听证会,以修改表中的记录,就像删除记录时一样?
As to modify a record and press the button save this did not request any confirmation or performs the action. 至于修改记录并按下保存按钮,这并不要求任何确认或执行操作。
Find out what would have to occupy the pre_save()
, but I could not make the confirmation hearing 找出必须占用pre_save()
,但我无法进行确认听证
https://docs.djangoproject.com/en/dev/ref/signals/#pre-save https://docs.djangoproject.com/en/dev/ref/signals/#pre-save
In the formtools
contrib package you'll find form-preview
, which is a class that lets you load a form, preview it, and then provides hooks to do whatever you would like with the cleaned form data. 在formtools
contrib程序包中,您将找到form-preview
,这是一个类,可让您加载表单,预览表单,然后提供钩子以对清理的表单数据执行任何操作。
It takes care of the following flow: 它照顾以下流程:
This would solve your confirmation problem. 这样可以解决您的确认问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.