Changes between Version 16 and Version 17 of NewAdminChanges


Ignore:
Timestamp:
Oct 30, 2005, 12:35:54 PM (19 years ago)
Author:
rjwittams
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewAdminChanges

    v16 v17  
    196196An example is change forms - these are the forms used to modify and add objects in the admin. The templates are selected in the following order :
    197197
    198 admin/<app_label>/<object_name>/change_form
    199 admin/<app_label>/change_form
    200 admin/change_form
    201 
    202 So it is possible to change the form just for one kind of object.
     198 * admin/<app_label>/<object_name>/change_form
     199 * admin/<app_label>/change_form
     200 * admin/change_form
     201
     202So it is possible to change the form just for one kind of object, or for one app.
    203203This makes it possible to add in extra information or change existing blocks eg branding.
    204204
     
    215215}}}
    216216
    217 This works using normal template inheritance, so make sure you inherit from the right thing.
    218 
    219 In the change forms, the following blocks are available for custom overriding:
    220 
    221 branding - included from "admin/base"
    222 form_top - at the top of the form after the title.
    223 after_field_sets - after standard field sets, before the related objects
    224 after_related_objects - after edit_inline objects
     217This works using normal template inheritance, so make sure you inherit from the right thing ( usually "admin/change_form", but for an object in an app that has its own change form, it may be "admin/<app_name>/change_form" ).
     218
     219In  the change forms, the following blocks are available for custom overriding:
     220
     221 * branding - included from "admin/base"
     222 * form_top - at the top of the form after the title.
     223 * after_field_sets - after standard field sets, before the related objects
     224 * after_related_objects - after edit_inline objects
    225225
    226226
Back to Top