Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improved docs for `contrib.admin.options.ModelAdmin.response_*`

Added links to code references in the docs for `response_add`,
`response_change` and `response_delete`.
  • Loading branch information...
commit 2223b83a5503fe79bf401b5a2dd00938d5e2848c 1 parent bacbbb4
Pablo Mouzo authored September 07, 2013

Showing 1 changed file with 8 additions and 3 deletions. Show diff stats Hide diff stats

  1. 11  docs/ref/contrib/admin/index.txt
11  docs/ref/contrib/admin/index.txt
@@ -1516,7 +1516,8 @@ templates used by the :class:`ModelAdmin` views:
1516 1516
 
1517 1517
 .. method:: ModelAdmin.response_add(self, request, obj, post_url_continue=None)
1518 1518
 
1519  
-    Determines the HttpResponse for the add_view stage.
  1519
+    Determines the :class:`~django.http.HttpResponse` for the
  1520
+    :meth:`add_view` stage.
1520 1521
 
1521 1522
     ``response_add`` is called after the admin form is submitted and
1522 1523
     just after the object and all the related instances have
@@ -1525,7 +1526,8 @@ templates used by the :class:`ModelAdmin` views:
1525 1526
 
1526 1527
 .. method:: ModelAdmin.response_change(self, request, obj)
1527 1528
 
1528  
-    Determines the HttpResponse for the change_view stage.
  1529
+    Determines the :class:`~django.http.HttpResponse` for the
  1530
+    :meth:`change_view` stage.
1529 1531
 
1530 1532
     ``response_change`` is called after the admin form is submitted and
1531 1533
     just after the object and all the related instances have
@@ -1534,7 +1536,10 @@ templates used by the :class:`ModelAdmin` views:
1534 1536
 
1535 1537
 .. method:: ModelAdmin.response_delete(self, request, obj_display)
1536 1538
 
1537  
-    Determines the HttpResponse for the delete_view stage.
  1539
+    .. versionadded:: 1.7
  1540
+
  1541
+    Determines the :class:`~django.http.HttpResponse` for the
  1542
+    :meth:`delete_view` stage.
1538 1543
 
1539 1544
     ``response_delete`` is called after the object has been
1540 1545
     deleted. You can override it to change the default

0 notes on commit 2223b83

Please sign in to comment.
Something went wrong with that request. Please try again.