django1/django
Anssi Kääriäinen 59a655988e Fixed #13844 -- Avoid converting unknown db values to float
This patch removes an unconditional float(value) conversion from db
backend default convert_values() method. This can cause problems when
aggregating over character fields for example. In addition, Oracle
and SQLite already return the bare value from their convert_values().

In the long term the converting should be done by fields, and the
fields should then call database backend specific converters when
needed. The current setup is inflexible for 3rd party fields.

Thanks to Merlijn van Deen for the original patch.
2012-08-12 21:52:52 +03:00
..
bin [py3] Added fixer for python_2_unicode_compatible. 2012-08-12 14:44:40 +02:00
conf remove a bunch of unnescesarry iterkeys() calls 2012-08-08 07:33:15 -07:00
contrib [py3] Made __repr__ return str with Python 3 2012-08-12 20:45:39 +02:00
core [py3] Made __repr__ return str with Python 3 2012-08-12 20:45:39 +02:00
db Fixed #13844 -- Avoid converting unknown db values to float 2012-08-12 21:52:52 +03:00
dispatch [py3] Replaced __nonzero__ by __bool__ 2012-08-08 15:02:31 +02:00
forms [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
http [py3] Used smart_str to prevent regressions in http handling 2012-08-11 15:29:29 +02:00
middleware Fixed #18042 -- Advanced deprecation warnings. 2012-05-03 15:27:01 +02:00
shortcuts Removed usage of mimetype kwarg of HttpResponse 2012-06-30 21:19:07 +02:00
template [py3] Made __repr__ return str with Python 3 2012-08-12 20:45:39 +02:00
templatetags [py3] Ported django.utils.encoding. 2012-08-07 12:00:22 +02:00
test [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
utils [py3] Deprecated StrAndUnicode. 2012-08-12 14:44:41 +02:00
views [py3] Ported django.utils.encoding. 2012-08-07 12:00:22 +02:00
__init__.py Moved version code out of __init__.py. 2012-04-29 13:44:32 -05:00