#13163: Display link to change-form on inlines where model is registered in 
admin
site
-------------------------------+------------------------------------
     Reporter:  DrMeers        |                    Owner:  DrMeers
         Type:  New feature    |                   Status:  assigned
    Component:  contrib.admin  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:  inline link    |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  1
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  1
-------------------------------+------------------------------------
Changes (by slurms):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.b3bf5a757965f6ef9e30e8c557c01d8c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to