The UpdateView page displayed to a GET request uses a template_name_suffix of _form. For example, changing this attribute to _update_form for a view updating objects for the example Author model would cause the default template_name to be myapp/author_update_form.html.
是的,它有,as documented here:
A similar pattern申请
CreateView
因此,create和update视图的默认模板都是
myapp/<model_name>_form.html
相关问题 更多 >
编程相关推荐