Changes between Version 32 and Version 33 of NewformsAdminBranch


Ignore:
Timestamp:
Sep 20, 2007, 3:30:27 PM (17 years ago)
Author:
Gary Wilson
Comment:

form preview is now documented

Legend:

Unmodified
Added
Removed
Modified
  • NewformsAdminBranch

    v32 v33  
    2222  * Integrate some ideas from #2248: Remove {{{core=True}}}, specify inline models in the model itself rather than in the related model, specify which fields should be displayed inline.
    2323
    24 The [http://code.djangoproject.com/browser/django/trunk/django/contrib/formtools/preview.py django.contrib.formtools.preview.FormPreview application] (not yet documented, but fully implemented) elegantly allows for fine-grained customization of the application by subclassing. We're taking a similar approach for the new version of the Django admin site: Write a class that subclasses a base class called {{{ModelAdmin}}} and specify whichever customizations you need to make -- from the current basic admin options such as {{{list_display}}} and {{{search_fields}}} to full-on Python hooks, such as defining arbitrary Python code to run before or after a model object is saved via the admin.
     24The [http://www.djangoproject.com/documentation/form_preview/ django.contrib.formtools.preview.FormPreview application] elegantly allows for fine-grained customization of the application by subclassing. We're taking a similar approach for the new version of the Django admin site: Write a class that subclasses a base class called {{{ModelAdmin}}} and specify whichever customizations you need to make -- from the current basic admin options such as {{{list_display}}} and {{{search_fields}}} to full-on Python hooks, such as defining arbitrary Python code to run before or after a model object is saved via the admin.
    2525
    2626== Status ==
Back to Top