#494: Collapse in admin interface for inline related objects ---------------------------------------------+------------------------------ Reporter: [EMAIL PROTECTED] | Owner: xian Status: new | Milestone: post-1.0 Component: django.contrib.admin | Version: newforms-admin Resolution: | Keywords: edit_inline, nfa-someday Stage: Design decision needed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 1 | ---------------------------------------------+------------------------------ Comment (by aptiko):
I just uploaded another patch (not including documentation), as proof of concept. It works, but I've done it by doing quite some voodoo debugging. The idea is to add a 'classes' !InlineModelAdmin option, with a list of classes. For example: {{{ class BookInline(admin.TabularInline): model = Book classes = ['collapse', 'extrapretty'] }}} If we like this interface, then please review my patch and help me find out what I didn't get right. However, I think that ideally I'd like another interface: the "fieldsets" !ModelAdmin option should be reworked in order to somehow include inline objects. This would also give the flexibility to change the order, allowing them to intermingle with other fieldsets, and so on. But this also means that some conceptual changes should be made, because inline objects are not fieldsets, they are formsets. The "fieldsets" option might need to be renamed to "formsections" or so and its structure enhanced or modified. -- Ticket URL: <http://code.djangoproject.com/ticket/494#comment:26> 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 django-updates@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---