Changes between Version 197 and Version 198 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
Jul 30, 2008, 10:56:00 PM (16 years ago)
Author:
Malcolm Tredinnick
Comment:

Added note about decimal field conversions from floats being bad

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v197 v198  
    6969 * [7971] July 18, 2008 [#Movednewformstoforms Moved django.newforms to django.forms]
    7070 * [8015] July 19, 2008 [#ChangedthewayURLpathsaredetermined Changed the way URL paths are determined]
     71 * [8143] July 30, 2008 [#DecimalFieldconversiontightened DecimalField conversion tightened]
    7172
    7273== Database constraint names changed ==
     
    10391040number of solutions that works for all web servers, rather than have to include
    1040104125 special cases for each webserver and installation possibility).
     1042
     1043== !DecimalField conversion tightened ==
     1044
     1045In [8143] the conversion between values in model attributes and values to be inserted into the database was changed internally. A side-effect of this is that Django will raise an error if you try to store a floating point value in a !DecimalField. There is no reliable way to convert between a float and a decimal. So you must either store a python `decimal` value in the model attribute or a string (which will then be converted to a `decimal`).
Back to Top