Opened 16 years ago

Last modified 11 years ago

#10938 closed

add inlines into fieldsets — at Initial Version

Reported by: tangc Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords: inlines fieldsets
Cc: cg@…, ckesselh, gargr, gezuru@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

ModelAdmin has fieldsets and inlines. e.g.
Ref: http://docs.djangoproject.com/en/dev/intro/tutorial02/,

fieldsets = [
        (None,               {'fields': ['question']}),
        ('Date information', {'fields': ['pub_date']}),
    ]

inlines = [ChoiceInline]

If can put the inlines into the fieldsets, it would be great. such as:

fieldsets = [
        (None,               {'fields': ['question']}),
        ('inlines sample',   {inlines : [ChoiceInline]}),
        ('Date information', {'fields': ['pub_date']}),
        ('inlines sample 2', {inlines : [SomeOtherChoiceInline]}),
    ]

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top