diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-01-12 23:34:03 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-01-12 23:34:03 +0000 |
| commit | 31f3a8c1ad3b6ec33c503241484107bf35cdadba (patch) | |
| tree | ba7751b7fe6b7a6429ee590153927b4c47aed1db /docs | |
| parent | 09b585e4bb250ab75264df129e341a7e731ef3b9 (diff) | |
Fixed #10640 - Adds a add_form_template option to ModelAdmin. Thanks jcsackett.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index a5b3138b44..fce694d6ac 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -712,11 +712,20 @@ view. Templates can override or extend base admin templates as described in If you don't specify this attribute, a default template shipped with Django that provides the standard appearance is used. +.. attribute:: ModelAdmin.add_form_template + +Path to a custom template that will be used by the model object creation +views. Templates can override or extend base admin templates as described in +`Overriding Admin Templates`_. + +If you don't specify this attribute, a default template shipped with Django +that provides the standard appearance is used. + .. attribute:: ModelAdmin.change_form_template -Path to a custom template that will be used by both the model object creation -and change views. Templates can override or extend base admin templates as -described in `Overriding Admin Templates`_. +Path to a custom template that will be used by the model object change views. +Templates can override or extend base admin templates as described in +`Overriding Admin Templates`_. If you don't specify this attribute, a default template shipped with Django that provides the standard appearance is used. |
