views:

42

answers:

2

I've got a problem here. I've got three models, A, B and C.

Class A

Class B
    fb = foreignkey(A)

Class C
    fc = foreignkey(B)

In admin.py I'm doing something like

AdminA
    inlines = [inlineB]

AdminB
    inlines = [inlineC]

The troubles start appearing on Add page of Model A. Basically, Model B is just a placeholder for different manytomany and foreignfields, and doesn't have any internal fields of its own. So although I'm able to add inline for Model B, I'm unable to add any features to it. I was hoping to find a way to get a popup window link in Inline rows. Something similar to the popup window thats opens when one needs to create a foreginkey. Any ideas?

A: 

Any solutions to this? I would love to have an "add model" button like the ManyToMany field in the admin to create a popup

pastylegs
Refer to the discussion and the eventual solution. http://stackoverflow.com/questions/3881323/django-inline-editing-of-related-model-using-inlineformset
Neo