summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2013-11-17 17:26:20 -0500
committerTim Graham <timograham@gmail.com>2015-01-10 12:24:52 -0500
commit07988744b347302925bc6cc66511e34224db55ab (patch)
tree8931006956c957f377133fda6852dafc60e03ff9 /docs
parent48ad288679a0cb2e2cfb17f128903e6c5b1c4870 (diff)
Fixed #13165 -- Added edit and delete links to admin foreign key widgets.
Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt9
-rw-r--r--docs/releases/1.8.txt25
2 files changed, 28 insertions, 6 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index a19f9fe7be..490dd5b49d 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1736,7 +1736,7 @@ templates used by the :class:`ModelAdmin` views:
been saved. You can override it to change the default
behavior after the object has been changed.
-.. method:: ModelAdmin.response_delete(request, obj_display)
+.. method:: ModelAdmin.response_delete(request, obj_display, obj_id)
.. versionadded:: 1.7
@@ -1750,6 +1750,13 @@ templates used by the :class:`ModelAdmin` views:
``obj_display`` is a string with the name of the deleted
object.
+ ``obj_id`` is the serialized identifier used to retrieve the object to be
+ deleted.
+
+ .. versionadded:: 1.8
+
+ The ``obj_id`` parameter was added.
+
.. method:: ModelAdmin.get_changeform_initial_data(request)
.. versionadded:: 1.7
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 5372f0ae99..7b01fbf9fe 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -161,6 +161,9 @@ Minor features
its value from :meth:`~django.contrib.admin.AdminSite.has_permission`,
indicates whether the user may access the site.
+* Foreign key dropdowns now have buttons for changing or deleting related
+ objects using a popup.
+
:mod:`django.contrib.admindocs`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -913,6 +916,23 @@ those writing third-party backends in updating their code:
``data_type_check_constraints`` attributes have moved from the
``DatabaseCreation`` class to ``DatabaseWrapper``.
+:mod:`django.contrib.admin`
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+* ``AdminSite`` no longer takes an ``app_name`` argument and its ``app_name``
+ attribute has been removed. The application name is always ``admin`` (as
+ opposed to the instance name which you can still customize using
+ ``AdminSite(name="...")``.
+
+* The ``ModelAdmin.get_object()`` method (private API) now takes a third
+ argument named ``from_field`` in order to specify which field should match
+ the provided ``object_id``.
+
+* The :meth:`ModelAdmin.response_delete()
+ <django.contrib.admin.ModelAdmin.response_delete>` method
+ now takes a second argument named ``obj_id`` which is the serialized
+ identifier used to retrieve the object before deletion.
+
Miscellaneous
~~~~~~~~~~~~~
@@ -945,11 +965,6 @@ Miscellaneous
``'username'``, using the the ``'unique'`` key in its
:attr:`~django.forms.Field.error_messages` argument.
-* ``AdminSite`` no longer takes an ``app_name`` argument and its ``app_name``
- attribute has been removed. The application name is always ``admin`` (as
- opposed to the instance name which you can still customize using
- ``AdminSite(name="...")``.
-
* The block ``usertools`` in the ``base.html`` template of
:mod:`django.contrib.admin` now requires the ``has_permission`` context
variable to be set. If you have any custom admin views that use this