Changes between Version 5 and Version 6 of DjangoSpecifications/NfAdmin/FlexibleAppHandling


Ignore:
Timestamp:
06/18/2008 12:38:27 PM (7 years ago)
Author:
mrts
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DjangoSpecifications/NfAdmin/FlexibleAppHandling

    v5 v6  
    2626
    2727{{{
     28class BarModelAdmin(admin.ModelAdmin):
     29   description = 'A bar is a bar is a bar'
     30   ...
     31
    2832class FooAppAdmin(admin.AppAdmin):
    2933    name = "Foo" # overrides app().name
     
    3236    order = 1
    3337    models = ( # model order in this list determines their display order in app block
    34       {'model' : BarModel, 'modeladmin' : BarModelAdmin, 'description' : 'A bar model'},
    35       {'model' : BazModel}, # use default ModelAdmin, don't show description
     38      (BarModel, BarModelAdmin),
     39      (BazModel, None), # use default ModelAdmin, don't show description
    3640   )
    3741
Back to Top