Changes between Version 237 and Version 238 of BackwardsIncompatibleChanges
- Timestamp:
- Aug 20, 2008, 8:17:16 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackwardsIncompatibleChanges
v237 v238 80 80 * [8345] Aug 13, 2008 [#Polishlocalflavorchanges Polish localflavor changes] 81 81 * [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] 82 83 83 84 == Changed 'spaceless' template tag to remove all spaces == … … 150 151 151 152 should be changed to refer to `settings.LOGIN_URL` instead. 153 154 155 152 156 153 157 == Test Client `login()` method changed == … … 437 441 Automatic HTML escaping (henceforth ''auto-escaping'') affects any variables in templates. It is only applied to variables and not to template tags. 438 442 443 439 444 {{{ 440 445 {{ a_variable }} -- This will be auto-escaped. … … 1191 1196 1192 1197 Specifically, `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 == 1201 In [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: 1207 for key, value_list in multivaluedict.iteritems(): 1208 for v in value_list: 1209 print key, v 1210 1211 # NEW: 1212 for key in multivaluedict.iterkeys(): 1213 for v in multivaluedict.getlist(key): 1214 print key, v 1215 }}}