* cc: cg@… (added)
--
Ticket URL: <http://code.djangoproject.com/ticket/13163#comment:6>
* easy: => 0
Comment:
With Django 1.3 does not work. Is there anything like that under 1.3 ?
--
Ticket URL: <http://code.djangoproject.com/ticket/13163#comment:9>
* needs_better_patch: 0 => 1
Comment:
combined_13165_13165.diff fails to apply cleanly on to trunk
--
Ticket URL: <http://code.djangoproject.com/ticket/13163#comment:10>
Django <https://code.djangoproject.com/>
* needs_tests: 0 => 1
Comment:
Hey guys, I've just added above my own implementation of this feature.
Very simple, just 3 lines of code but does the job.
(This patch does it only in tabular.html).
{{{
class BooksInline(admin.TabularInline):
model = Book
show_edit_link = True
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:13>
Comment (by anonymous):
any chance this will make it into 1.4 ?
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:15>
Comment (by anonymous):
still waiting for this to become a feature.
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:16>
* cc: glicerinu@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:17>
Comment (by charettes):
I packaged a simple app providing admin mixins to add a the edition and
deletion links on all amin FK widgets, including those in inlines. You can
find the project on [https://github.com/charettes/django-admin-enhancer
github] and on [http://pypi.python.org/pypi/django-admin-enhancer/0.1.0
pypi].
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:18>
Comment (by blueyed):
@smcoll:
It looks like there is a wrong `if` in your patch: `{% if
inline_admin_form.original %}`. It should check for the new
`show_edit_link` option probably.
I assume that it won't work for many2many inlines, where you have `model =
Foo.bars.through`?
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:19>
* needs_docs: 0 => 1
* needs_tests: 1 => 0
* needs_better_patch: 1 => 0
Comment:
PR here: https://github.com/django/django/pull/2957.
I added a method `AdminSite.is_registered()` which takes a `Model` class
or lowercased model name. This is needed for checking if the
`InlineModelAdmin`'s model is also registered as a `ModelAdmin` on the
site. There is precedence for this sort of check with registries -- the
app registry has `apps.is_installed()`, and it seems to be a reasonable
method to have on the `AdminSite`.
Renamed the `show_edit_link` to `show_change_link` for consistency across
the admin. The link will only be displayed if `show_change_link = True` on
the inline, the model itself is also registered, and there is an inline
object to change.
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:20>
* needs_docs: 1 => 0
Comment:
Added docs, updated PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:21>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"9d9f0acd7e245c9f9c30727a003666618754c924"]:
{{{
#!CommitTicketReference repository=""
revision="9d9f0acd7e245c9f9c30727a003666618754c924"
Fixed #13163 -- Added ability to show change links on inline objects in
admin.
Thanks DrMeers for the suggestion.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/13163#comment:22>