#9423: multi inline model
------------------------------------+---------------------------------------
Reporter: anonymous | Owner: nobody
Status: closed | Milestone:
Component: Uncategorized | Version: 1.0
Resolution: invalid | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Old description:
> I have this in my file admin.py :
>
> class AInLine(admin.StackedInline):
> model = A
>
> class BAdmin(admin.ModelAdmin):
> model = B
> inlines = [AInLine]
>
> class BInLine(admin.StackedInline):
> model = B
>
> class CAdmin(admin.ModelAdmin):
> model = C
> inlines = [BInLine]
>
> In the admin interface
>
> + the inline model AInLine is in BAdmin form : it's correct.
>
> + the inline model BInLine in CAdmin form : it's correct.
>
> But I don't have in CAdmin form the inline model AInLine, it's normal ?
>
> Can i have multiple inline model in one form with my admin.py file ?
New description:
I have this in my file admin.py :
{{{
class AInLine(admin.StackedInline):
model = A
class BAdmin(admin.ModelAdmin):
model = B
inlines = [AInLine]
class BInLine(admin.StackedInline):
model = B
class CAdmin(admin.ModelAdmin):
model = C
inlines = [BInLine]
}}}
In the admin interface
+ the inline model AInLine is in BAdmin form : it's correct.
+ the inline model BInLine in CAdmin form : it's correct.
But I don't have in CAdmin form the inline model AInLine, it's normal ?
Can i have multiple inline model in one form with my admin.py file ?
Comment (by kmtracey):
Beaten to the close! But I'll post this anyway since I think (though it
isn't entirely clear from the description) that it's looking for nested,
not simply multiple, inlines, and that's already requested in another
ticket.
As written this ticket is more appropriate as a question on django-users
-- you are asking if something is supported, not reporting a bug. Please
do not use the tracker for support questions. As it is I think what you
want nested inlines, which is #9025.
Also please do use the preview button, your code examples were hard to
read as originally posted due to improper formatting.
--
Ticket URL: <http://code.djangoproject.com/ticket/9423#comment:2>
Django <http://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 this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---