views.generic.edit.CreateView.template_name_suffix

template_name_suffix

The CreateView page displayed to a GET request uses a template_name_suffix of '_form'. For example, changing this attribute to '_create_form' for a view creating objects for the example Author model would cause the default template_name to be 'myapp/author_create_form.html'.

doc_Django
2016-10-09 18:41:04
Comments
Leave a Comment

Please login to continue.