django/tests/regressiontests
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
..
admin_changelist [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_custom_urls [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_filters [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_inlines [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_ordering Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
admin_registration Fixed #17090 -- Made the API specification for `ModelAdmin.get_list_display()` more consistent with that of `ModelAdmin.list_display` by separating out the admin action check boxes business. This is backwards-incompatible for those who have been using the still-unreleased `get_list_display()` method. Thanks to Ramiro Morales for the review. 2011-10-26 09:37:07 +00:00
admin_scripts [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_util [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_validation [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_views [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_widgets [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
aggregation_regress Fixed #13844 -- Avoid converting unknown db values to float 2012-08-12 21:52:52 +03:00
app_loading Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
backends [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
bash_completion [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
bug639 Made more extensive usage of context managers with open. 2012-05-05 14:06:36 +02:00
bug8245 Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
builtin_server [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
bulk_create Fixed #17788 -- Added batch_size argument to qs.bulk_create() 2012-07-17 15:24:41 +03:00
cache [py3] Ported django.utils.encoding. 2012-08-07 12:00:22 +02:00
comment_tests [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
conditional_processing Switched to Python 3-compatible octal notation. 2012-07-20 13:28:36 +02:00
context_processors Convert much of the regression tests to use absolute imports. There's still work to be done though. 2011-10-13 18:51:33 +00:00
createsuperuser [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
csrf_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
custom_columns_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_managers_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
datatypes [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
dates [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
db_typecasts [py3] Fixed access to dict keys/values/items. 2012-08-07 12:00:22 +02:00
decorators [py3] Various minor syntax fixes in the test suite 2012-08-11 23:23:31 +02:00
defaultfilters [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
defer_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
delete_regress Fixed #17918 - Handle proxy models correctly when sorting deletions for databases without deferred constraints. Thanks Nate Bragg for the report. 2012-03-17 01:24:39 +00:00
dispatch [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
expressions_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
extra_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
file_storage Switched to Python 3-compatible octal notation. 2012-07-20 13:28:36 +02:00
file_uploads [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
fixtures_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
forms [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
generic_inline_admin [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
generic_relations_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
generic_views [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
get_or_create_regress Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
handlers Marked bytestrings with b prefix. Refs #18269 2012-05-19 17:43:34 +02:00
httpwrappers [py3] Various minor syntax fixes in the test suite 2012-08-11 23:23:31 +02:00
i18n [py3] Fixed compilemessages tests 2012-08-08 23:40:20 +02:00
initial_sql_regress Re-added Windows line ending stripped in previous commit 2012-07-21 15:38:28 +02:00
inline_formsets [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
inspectdb [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
introspection [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
localflavor Removed u prefixes on unicode strings. 2012-07-20 12:29:22 +02:00
logging_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
m2m_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_through_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
mail [py3] Fixed mail tests with Python 3 2012-08-09 20:13:29 +02:00
managers_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
many_to_one_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
max_lengths Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
middleware [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
middleware_exceptions Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
model_fields Fixed #18724 -- Fixed IntegerField validation with value 0 2012-08-06 10:42:21 +02:00
model_forms_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_formsets_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_select_related [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_permalink Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
model_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
modeladmin [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
multiple_database [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_fk [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_fk_ordering [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_queries [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
one_to_one_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
pagination_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
queries [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
queryset_pickle Fixed #17776 - DoesNotExist is not picklable 2012-06-22 13:28:15 +01:00
requests [py3] Used BytesIO to test request streams 2012-08-11 11:11:20 +02:00
reverse_single_related Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
select_related_onetoone [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
select_related_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
serializers_regress Fixed #15197 -- Fixed yaml serialization into HttpResponse 2012-06-28 16:29:29 +02:00
servers [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
settings_tests Replaced deprecated TestCase methods. Refs #17049. 2012-05-03 16:39:16 +02:00
signals_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
signed_cookies_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
signing [py3] Made signing infrastructure pass tests with Python 3 2012-08-10 18:07:46 +02:00
sites_framework [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
special_headers Ensured tests pass using custom PASSWORD_HASHERS. 2012-04-30 22:10:27 +03:00
staticfiles_tests [py3] Used six.StringIO to simulate stdout buffer in tests 2012-08-11 18:56:14 +02:00
string_lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
syndication [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
templates [py3] Made exception examination py3-compatible. 2012-08-12 12:08:58 -04:00
test_client_regress Removed usage of mimetype kwarg of HttpResponse 2012-06-30 21:19:07 +02:00
test_runner Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
test_utils [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
text Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
transactions_regress Stylistic cleanup of Postgres autocommit tests 2012-07-03 10:22:13 +03:00
urlpatterns_reverse Fixed #6170 -- Ensured that a useful exception is raised when a regex is invalid in the URLConf. 2012-07-21 13:30:34 -07:00
utils [py3] Ported django.utils.functional. 2012-08-07 12:00:23 +02:00
version Fixed #18224 -- Changed the dev version number. 2012-04-29 13:40:10 +02:00
views [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
wsgi [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
__init__.py Added regressions tests to ensure that one-to-one and many-to-many fields 2006-06-20 05:29:19 +00:00