Changes between Version 31 and Version 32 of NewAdminChanges
- Timestamp:
- Dec 21, 2006, 11:16:55 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewAdminChanges
v31 v32 236 236 An 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 : 237 237 238 * admin/<app_label>/<object_name>/change_form 239 * admin/<app_label>/change_form 240 * admin/change_form 238 * admin/<app_label>/<object_name>/change_form.html 239 * admin/<app_label>/change_form.html 240 * admin/change_form.html 241 241 242 242 So it is possible to change the form just for one kind of object, or for one app. … … 248 248 {{{ 249 249 250 {%extends 'admin/change_form ' %}250 {%extends 'admin/change_form.html' %} 251 251 252 252 {% block branding %} Customised title {% endblock %} … … 255 255 }}} 256 256 257 This 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' ).257 This works using normal template inheritance, so make sure you inherit from the right thing ( usually 'admin/change_form.html', but for an object in an app that has its own change form, it may be 'admin/<app_name>/change_form.html' ). 258 258 259 259 In the change forms, the following blocks are available for custom overriding: 260 260 261 * branding - included from 'admin/base ';261 * branding - included from 'admin/base.html'; 262 262 * form_top - at the top of the form after the title. 263 263 * after_field_sets - after standard field sets, before the related objects