Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango : Inline editing of related model using inlineformset
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. CO_What did you actually try so far?_ You made a related question 12 hours earlier, in which you said that Model B defined merely the relation between A and C. I once had a similar set-up with models from django-tagging and it basically worked using a `GenericInlineAdminForm` for `TaggedItem`, which also mainly defines the relation between tags, tagged objects and content types. However, you cannot expect to get a helpful answer here if you state only rather abstract questions.
      singulars
    2. CO12 hours ago, yes B was an abstract class. But not anylonger, I made some changes to the class. Earlier I was hoping to find some built in solution, like the popup which appears if you want to create a foreginkey object. Now I'm trying to create an inlineformset kind of structure. So in Inline row, I'm hoping that apart from fields of B, I'm able to add instances class C objects. So looking for a customized formset solution using modelforms, inlineformsets etc. Infact my problem is exactly the same as the one in the link i've mentioned. Can you fill me with the details of its solution?
      singulars
    3. COPlease take a look at http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#inlinemodeladmin-objects. If you define an InlineAdminForm for model B, e.g. derived from admin.TabularInline, you should get a form display that provides **+**-buttons which should enable you to create instances of C within a popup. If that doesn't work, check your foreign keys. The question you linked to basically has reasonable answers to your problem.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload