On 24-8-2012 14:05, Vikas Rawal wrote: >> >> <https://docs.djangoproject.com/en/1.4/intro/tutorial02/#customize-the-admin-form> >> >> See the fieldsets part. > > > The examples shown for fieldsets seem to divide the fields into > different groups. But in all the examples, fields still appear, within > each group, one after another, vertically.
Ah, right it's not properly covered in the tutorial. Within the fields member of the dictionary you can group them. Details are here: <https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fields> Short version: fieldsets = ( (None, { 'fields': ( (question, pub_date), ), } ), #... ) -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.