#9025: Nested Inline Support in Admin
-------------------------------+------------------------------------
     Reporter:  pixelcort      |                    Owner:  Gargamel
         Type:  New feature    |                   Status:  assigned
    Component:  contrib.admin  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  1              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  1
-------------------------------+------------------------------------

Comment (by rugbyjock):

 @Gargamel: Many thanks for this patch, it's exactly what I needed.
 Unfortunately I think I've come across 2 bugs though...

 (referring to the example in pztrick's post with Projects, Parcels, Plots
 and Trees)

 1) In the admin page when you have a Project with no Parcels, click on
 "Add another Parcel" and you'll get a new Parcel to edit but it won't show
 any of the "Add another Plot" options for the nested inlines.

 2) If you have a Project with several Parcels and you click on "Add
 another Parcel" you seem to get one Plot already made for each existing
 Parcel that you have. If I make no more changes but click "Save" now, I
 get the message "Parent object must be created when creating nested
 inlines."

 It is of course possible that my models are set up incorrectly but I think
 they're ok - basically each nested inline has a foreign key to its
 immediate parent. Using the tree example again, Tree has FK to Plot, Plot
 has FK to Parcel, Parcel has FK to Project.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/9025#comment:116>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to