Code

Changes between Version 102 and Version 103 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
06/24/07 19:40:28 (7 years ago)
Author:
mtredinnick
Comment:

Removed reference to a feature that has been backed out.

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v102 v103  
    2626 * May 14, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Newforms:clean_datachangedtocleaned_data Newforms: clean_data changed to cleaned_data] 
    2727 * May 20, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#RenamedFloatFieldtoDecimalField Renamed FloatField to DecimalField] 
    28  * June 17, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#NodeListsmustcontainNodes NodeLists must contain Nodes] 
    2928 * June 22, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Urlpatternsnowcached Urlpatterns now cached] 
    3029 
     
    223222If something goes wrong in the above process, just copy your backed up database file over the top of the original file and start again. 
    224223 
    225 == !NodeLists must contain Nodes == 
    226  
    227 Django's template rendering classes includes a !NodeList class, which is a subclass of Python's list type. Previously, a !NodeList could hold objects with a {{{render()}}} method (usually Node subclasses) or strings. 
    228  
    229 In [5482], as part of an optimisation to improve template rendering speeds, this was changed so that every object in a !NodeList must be a !Node subclass (or have the same interface). Strings are no longer allowed. 
    230  
    231 This change is unlikely to affect most code. However, if you have a custom template tag that uses !NodeList and does not populate it with Nodes, you should change your code to use normal lists instead. Django's own !ForNode class (for implementing "for loops" in templates) was the only internal code affected by this change. Consult the current implementation of {{{ForNode.iter_render}}} to see how the !NodeList usage has been replaced. 
    232  
    233224== Urlpatterns now cached == 
    234225