views:

79

answers:

2

Hi,

How to show two "fieldsets" horizontally in a form?

Note: I don't mean show multiple fields horizontally, but multiple fieldsets.

Thank you!

A: 

I've never tried it, but look into Overriding Admin Templates (specifically change_form.html and the part that iterates through fieldsets).

che
+3  A: 

Each fieldset, in addition to the tuple of fields, also takes a classes argument which is a list of CSS classes to apply to the fieldset. You can use this in conjunction with a custom stylesheet loaded via the ModelAdmin media class to position things via CSS.

Daniel Roseman