#30233: add get_queryset_with_parent_obj to InlineModelAdmin to support access
parent_model's instance
-------------------------------+--------------------------------------
     Reporter:  banxi          |                    Owner:  nobody
         Type:  New feature    |                   Status:  closed
    Component:  contrib.admin  |                  Version:  master
     Severity:  Normal         |               Resolution:  wontfix
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 You can already solve this using
 
[https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_inline_instances
 `ModelAdmin.get_inline_instances()`]. This is passed the ''parent
 object'', which you could set as an attribute on the inline, to be used
 later in `get_queryset()`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30233#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.8bb99cdd87a6e6dea9c7669707c13d4a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to