Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django fieldset

class DemoAdmin(admin.ModelAdmin):
  list_display = ('name', 'city')
  fieldsets = (
      ('Standard info', {
          'fields': ('name')
      }),
      ('Address info', {
          'fields': ('address', ('city', 'zip'))
      }),
   )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #fieldset
ADD COMMENT
Topic
Name
3+6 =