mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
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.
This commit is contained in:
parent
48ad288679
commit
07988744b3
17 changed files with 427 additions and 70 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue