Changes between Version 21 and Version 22 of NewformsAdminBranch
- Timestamp:
- Apr 9, 2007, 11:54:27 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewformsAdminBranch
v21 v22 149 149 These give you much more flexibility. 150 150 151 Note that this change was made to the NewformsAdminBranch. (We initially called the new method {{{change_list_queryset}}}, but this was changed in [4584] to be more flexible.) The change will not be made to trunk until that branch is merged to trunk. 151 (We initially called the new method {{{change_list_queryset}}}, but this was changed in [4584] to be more flexible.) 152 152 153 153 === Changed prepopulate_from to be defined in the Admin class, not database field classes === 154 154 155 As of [4446], the {{{prepopulate_from}}} option to database fields no longer exists. It's been discontinued in favor of the new {{{prepopulated_fields}}} option on {{{class Admin}}}. The new {{{prepopulated_fields}}} option, if given, should be a dictionary mapping field names to lists/tuples of field names. This change was made to separate the content of models with the presentation of admin : models represent structures of tables, and shouldn't be spoilt by admin stuff. Here's an example comparing old syntax and new syntax:155 As of [4446], the {{{prepopulate_from}}} option to database fields no longer exists. It's been discontinued in favor of the new {{{prepopulated_fields}}} option on {{{class Admin}}}. The new {{{prepopulated_fields}}} option, if given, should be a dictionary mapping field names to lists/tuples of field names. This change was made in an effort to remove admin-specific options from the model itself. Here's an example comparing old syntax and new syntax: 156 156 157 157 {{{ … … 181 181 }}} 182 182 183 Note that this change was made to the NewformsAdminBranch. The change will not be made to trunk until that branch is merged to trunk.184 185 183 === Moved admin doc views into django.contrib.admindocs === 186 184 … … 195 193 (r'^admin/doc/', include('django.contrib.admindocs.urls')), 196 194 }}} 197 198 Note that this change has been made to the NewformsAdminBranch. The change will not be made to trunk until that branch is merged to trunk.