Code

Changes between Version 131 and Version 132 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
11/10/07 22:41:22 (6 years ago)
Author:
gwilson
Comment:

added removal of SortedDictFromList class

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v131 v132  
    4242 * [6289] Sept. 15, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Templatetagloadingrespectsdottednotation  Template tag loading respects dotted notation] 
    4343 * [6582] Oct. 21, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#_nolongerinbuiltins  _() no longer in builtins] 
     44 * [6668] Nov. 10, 2007: [#django.newforms.forms.SortedDictFromListclassremoved django.newforms.forms.SortedDictFromList class removed] 
    4445 
    4546 
     
    417418from django.utils.translation import ugettext as _ 
    418419}}} 
     420 
     421 
     422== `django.newforms.forms.SortedDictFromList` class removed == 
     423 
     424In [6668], the `SortedDictFromList` class was removed.  Due to `django.utils.datastructures.SortedDict` gaining the ability to be instantiated with a sequence of tuples (#5744), `SortedDictFromList` was no longer needed.  Two things need to be done to fix your code: 
     425 
     426 1. Use `django.utils.datastructures.SortedDict` wherever you were using `django.newforms.forms.SortedDictFromList`. 
     427 1. Since `SortedDict`'s copy method doesn't return a deepcopy as `SortedDictFromList`'s `copy` method did, you will need to update your code if you were relying on `SortedDictFromList.copy` to return a deepcopy.  Do this by using `copy.deepcopy` instead of `SortedDict`'s `copy` method.