Changes between Version 237 and Version 238 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
Aug 20, 2008, 8:17:16 AM (16 years ago)
Author:
Jeremy Dunck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v237 v238  
    8080 * [8345] Aug 13, 2008 [#Polishlocalflavorchanges Polish localflavor changes]
    8181 * [8348] Aug 14, 2008 [#RemovedvalidatemethodsforModelandModelfieldclasses Removed validate methods for Model and Model field classes]
     82 * [8399] Aug 15, 2008 [#RemovedvalidatemethodsforModelandModelfieldclasses Corrected MultiValueDict.iteritems to return items rather than lists]
    8283
    8384== Changed 'spaceless' template tag to remove all spaces ==
     
    150151
    151152should be changed to refer to `settings.LOGIN_URL` instead.
     153
     154
     155
    152156
    153157== Test Client `login()` method changed ==
     
    437441Automatic HTML escaping (henceforth ''auto-escaping'') affects any variables in templates. It is only applied to variables and not to template tags.
    438442
     443
    439444{{{
    440445{{ a_variable }}   -- This will be auto-escaped.
     
    11911196
    11921197Specifically, `django.db.models.base.Model.validate()`, `django.db.models.fields.Field.validate()`, and `django.db.models.fields.Field.validate_full()` were removed, along with a few model fields' validate methods.
     1198
     1199
     1200== Corrected MultiValueDict.iteritems to return items rather than lists ==
     1201In [8399], `MultiValueDict.iteritems` was changed to return the last value given.   Previously, it returned the list as in `MultiValueDict.getlist()`.   Code depending on the old `iteritems` returning the list should be changed to use `MultiValueDict.iterkeys` and `MultiValueDict.getlist()`.
     1202
     1203{{{
     1204#!python
     1205
     1206# OLD:
     1207for key, value_list in multivaluedict.iteritems():
     1208    for v in value_list:
     1209        print key, v
     1210
     1211# NEW:
     1212for key in multivaluedict.iterkeys():
     1213    for v in multivaluedict.getlist(key):
     1214        print key, v
     1215}}}
Back to Top