Changes between Version 21 and Version 22 of NewformsAdminBranch


Ignore:
Timestamp:
Apr 9, 2007, 11:54:27 PM (18 years ago)
Author:
Adrian Holovaty
Comment:

Cleaned up some stuff

Legend:

Unmodified
Added
Removed
Modified
  • NewformsAdminBranch

    v21 v22  
    149149These give you much more flexibility.
    150150
    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.)
    152152
    153153=== Changed prepopulate_from to be defined in the Admin class, not database field classes ===
    154154
    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:
     155As 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:
    156156
    157157{{{
     
    181181}}}
    182182
    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 
    185183=== Moved admin doc views into django.contrib.admindocs ===
    186184
     
    195193(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    196194}}}
    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.
Back to Top