Ticket #9032: admin.diff
File admin.diff, 1.0 KB (added by , 16 years ago) |
---|
-
docs/ref/contrib/admin.txt
41 41 42 42 The ``ModelAdmin`` class is the representation of a model in the admin 43 43 interface. These are stored in a file named ``admin.py`` in your application. 44 Let's take a look at a very simple example the ``ModelAdmin``::44 Let's take a look at a very simple example of the ``ModelAdmin``:: 45 45 46 46 from django.contrib import admin 47 47 from myproject.myapp.models import Author … … 145 145 'classes': ['wide', 'extrapretty'], 146 146 } 147 147 148 Two useful classes defined by the default admin -site stylesheet are148 Two useful classes defined by the default admin site stylesheet are 149 149 ``collapse`` and ``wide``. Fieldsets with the ``collapse`` style will 150 150 be initially collapsed in the admin and replaced with a small 151 151 "click to expand" link. Fieldsets with the ``wide`` style will be