#10590: Support nested fieldsets in administration
----------------------------------+-----------------------------------------
 Reporter:  Archatas              |       Owner:  nobody    
   Status:  new                   |   Milestone:  1.1 beta  
Component:  django.contrib.admin  |     Version:  1.0       
 Keywords:  nested fieldsets      |       Stage:  Unreviewed
Has_patch:  1                     |  
----------------------------------+-----------------------------------------
 Administration options should allow to have nested fieldsets for grouping
 fields in a more organized way.

 For example,
 {{{
 #!python
 # -*- coding: utf-8 -*-
 from django.utils.translation import ugettext_lazy as _
 from django.contrib import admin
 from halmastar.apps.sandbox.models import Contact

 class ContactAdmin(admin.ModelAdmin):
     fieldsets = (
     (_("Main Info"), {'fields': ("user", "website")}),
     (_("Phones"), {'fields': (
         (_("Primary"), {'fields': (("primary_phone_country",
 "primary_phone_area", "primary_phone_number"),)}),
         (_("Secondary"), {'fields': (("secondary_phone_country",
 "secondary_phone_area", "secondary_phone_number"),)}),
         )}),
     )

 admin.site.register(Contact, ContactAdmin)

 }}}

 The key 'fields' point to a list of field names, field-name tuples, or
 fieldset definitions.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10590>
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 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to