【发布时间】:2023-03-17 06:46:01
【问题描述】:
我想在 success_message 中显示新数据,在我的通用 UpdateView 中进行了更改。 而且我不知道如何从表单访问这些数据。
一切都像超标准,代码是这样的:
class ProductOneUpdateView(UpdateView):
model = ProductOne
fields = ['quantity']
success_message = ................
我想要新的数量,由这个成功消息中显示的用户更改。 期待您的回答!
【问题讨论】: