On 8/26/05, paolo <[EMAIL PROTECTED]> wrote: > Hi, I'd like to know if it is possible to have different fieldsets for > the same fields, subdivided by some criterion. > > admin = meta.Admin( > fields = ( > ('category1', { > 'classes': 'collapse', > 'fields': ('name', 'short_desc', 'long_desc') > }), > ('category2', { > 'classes': 'collapse', > 'fields' : ('name', 'short_desc', 'long_desc') > }), > ('category_n', { > 'classes': 'collapse', > 'fields' : ('name', 'short_desc', 'long_desc') > }), > ),
No, that wouldn't work, because it would create multiple <input type="text"> fields for the same field (name, short_desc, long_desc). If your object only has one "name", "short_desc" and "long_desc," it doesn't make much sense to offer multiple fields to edit them... -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org