diff options
| author | Tim Graham <timograham@gmail.com> | 2013-09-07 09:38:48 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-07 09:38:48 -0700 |
| commit | ff49449425eb9d4d04096f4f1bc4b32158683699 (patch) | |
| tree | 8e54df0406f26e8b3dfa7606bac6dbe835e612b6 /docs | |
| parent | 476b07641c35728d260cadacc2735dbba6ec98c9 (diff) | |
| parent | 2223b83a5503fe79bf401b5a2dd00938d5e2848c (diff) | |
Merge pull request #1592 from pablomouzo/fix-admin-view-response-methods-docs
Improved docs for `contrib.admin.options.ModelAdmin.response_*`
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index f563a01647..bc26a15b42 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1516,7 +1516,8 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.response_add(self, request, obj, post_url_continue=None) - Determines the HttpResponse for the add_view stage. + Determines the :class:`~django.http.HttpResponse` for the + :meth:`add_view` stage. ``response_add`` is called after the admin form is submitted and just after the object and all the related instances have @@ -1525,7 +1526,8 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.response_change(self, request, obj) - Determines the HttpResponse for the change_view stage. + Determines the :class:`~django.http.HttpResponse` for the + :meth:`change_view` stage. ``response_change`` is called after the admin form is submitted and just after the object and all the related instances have @@ -1534,7 +1536,10 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.response_delete(self, request, obj_display) - Determines the HttpResponse for the delete_view stage. + .. versionadded:: 1.7 + + Determines the :class:`~django.http.HttpResponse` for the + :meth:`delete_view` stage. ``response_delete`` is called after the object has been deleted. You can override it to change the default |
