summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-08-26Fixed #20693 -- Add timezone support to built-in time filter.Warren Smith
Modified django.utils.dateformat module, moving __init__() method and timezone-related format methods from DateFormat class to TimeFormat base class. Modified timezone-related format methods to return an empty string when timezone is inappropriate for input value.
2013-08-26Added further fixes, tests for #19949/f33db5a09a.Ramiro Morales
Thanks Susan Tan. Refs #19949.
2013-08-25Made coverage ignore files without associated source code.Ramiro Morales
This only affests reporting not data collection and allows coverage.py to succesfully finish the generation of e.g. the HTML report. Cases of code whose execution data is collected during the run phase but for which no associated source code files can be found at the reporting phase include tests with egg files and Python module files created at test execution-time.
2013-08-25Ignore coverage HTML report output dir in tests.Ramiro Morales
Added it to the list of dirs ignored by tests/runtests.py.
2013-08-24Fixed #20814 -- Improved model field accessor clash error messagesChristopher Medrela
Thanks shai for the suggestion.
2013-08-24Fixed #20961 -- Fixed HttpResponse default empty contentClaude Paroz
Thanks epandurski at gmail.com for the report.
2013-08-24Fixed 19949 -- Cached template loader now caches TemplateDoesNotExistSusanTan
Thanks @timgraham and @jdunck for the code reviews and Kronuz for bug report and initial patch.
2013-08-23Removed usage of u"" string prefix, which doesn't work on python3.2Alex Gaynor
2013-08-23Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/oracle/base.py django/db/backends/postgresql_psycopg2/base.py django/db/models/signals.py tests/queries/tests.py
2013-08-23Fix some small errors in the testsAndrew Godwin
2013-08-22Fixed #20922 -- Allowed customizing the serializer used by contrib.sessionsTim Graham
Added settings.SESSION_SERIALIZER which is the import path of a serializer to use for sessions. Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.
2013-08-22Fixed #19303 -- Fixed ModelAdmin.formfield_overrides on fields with choicesLukasz Balcerzak
2013-08-22Fixed #20934 -- Avoided NoReverseMatch in ModelAdmin.changelist_viewRainer Koirikivi
The view tried to display links to a ModelAdmin's change_view, which resulted in NoReverseMatches if get_urls was overridden to remove the corresponding url.
2013-08-22Fixed model.__eq__ and __hash__ for no pk value casesAnssi Kääriäinen
The __eq__ method now considers two instances without primary key value equal only when they have same id(). The __hash__ method raises TypeError for no primary key case. Fixed #18864, fixed #18250 Thanks to Tim Graham for docs review.
2013-08-22Fixed #20955 -- select_related regressionAnssi Kääriäinen
In cases where the same connection (from model A to model B along the same field) was needed multiple times in a select_related query, the join setup code mistakenly reused an existing join.
2013-08-21Fixed a regression with get_or_create and virtual fields.Tim Graham
refs #20429 Thanks Simon Charette for the report and review.
2013-08-21Switched mail tests to SimpleTestCase.Ramiro Morales
2013-08-21Fixed #12422 -- Don't override global email charset behavior for utf-8.Ramiro Morales
Thanks simonb for the report, Claude Paroz and Susan Tan for their work on a fix.
2013-08-21Fixed #20946 -- model inheritance + m2m failureAnssi Kääriäinen
Cleaned up the internal implementation of m2m fields by removing related.py _get_fk_val(). The _get_fk_val() was doing the wrong thing if asked for the foreign key value on foreign key to parent model's primary key when child model had different primary key field.
2013-08-21Import test case classes from their public API module.Ramiro Morales
2013-08-21Fixed #18967 -- Don't base64-encode message/rfc822 attachments.Ramiro Morales
Thanks Michael Farrell for the report and his work on the fix.
2013-08-21Fixed #20933 -- Allowed loaddata to load fixtures from relative paths.Florian Apolloner
2013-08-21Fixed invalid testing fixtureAnssi Kääriäinen
2013-08-21Fixed #20820 -- Model inheritance + m2m fixture loading regressionAnssi Kääriäinen
Tests by Tim Graham, report from jeroen.pulles@redslider.net.
2013-08-21Fixed test failure caused by different NULL ordering between backendsAnssi Kääriäinen
2013-08-21Fixed #14056 -- Made sure LEFT JOIN aren't trimmed in ORDER BYAnssi Kääriäinen
If LEFT JOINs are required for correct results, then trimming the join can lead to incorrect results. Consider case: TBL A: ID | TBL B: ID A_ID 1 1 1 2 Now A.order_by('b__a') did use a join to B, and B's a_id column. This was seen to contain the same value as A's id, and so the join was trimmed. But this wasn't correct as the join is LEFT JOIN, and for row A.id = 2 the B.a_id column is NULL.
2013-08-21Fixed #14043 -- Made sure nullable o2o delete works as expectedAnssi Kääriäinen
There was an old complaint about nullable one-to-one field cascading even when the o2o field was saved to None value before the deletion. Added an test to verify this doesn't happen. Also some PEP 8 cleanup.
2013-08-21Fixed #20943 -- Weakly reference senders when caching their associated receiversSimon Charette
2013-08-21Fixed an aggregation test failure on MySQL.Simon Charette
2013-08-21Change autodetector changes API to be just one methodAndrew Godwin
2013-08-21Fixed a regression with get_or_create and virtual fields.Tim Graham
refs #20429 Thanks Simon Charette for the report and review.
2013-08-21Switched mail tests to SimpleTestCase.Ramiro Morales
2013-08-21Fixed #12422 -- Don't override global email charset behavior for utf-8.Ramiro Morales
Thanks simonb for the report, Claude Paroz and Susan Tan for their work on a fix.
2013-08-21Fixed #20946 -- model inheritance + m2m failureAnssi Kääriäinen
Cleaned up the internal implementation of m2m fields by removing related.py _get_fk_val(). The _get_fk_val() was doing the wrong thing if asked for the foreign key value on foreign key to parent model's primary key when child model had different primary key field.
2013-08-20Import test case classes from their public API module.Ramiro Morales
2013-08-20Fixed #18967 -- Don't base64-encode message/rfc822 attachments.Ramiro Morales
Thanks Michael Farrell for the report and his work on the fix.
2013-08-20Fixed #20933 -- Allowed loaddata to load fixtures from relative paths.Florian Apolloner
2013-08-20Fixed invalid testing fixtureAnssi Kääriäinen
2013-08-20Fixed #20820 -- Model inheritance + m2m fixture loading regressionAnssi Kääriäinen
Tests by Tim Graham, report from jeroen.pulles@redslider.net.
2013-08-20Fixed test failure caused by different NULL ordering between backendsAnssi Kääriäinen
2013-08-20Fixed #14056 -- Made sure LEFT JOIN aren't trimmed in ORDER BYAnssi Kääriäinen
If LEFT JOINs are required for correct results, then trimming the join can lead to incorrect results. Consider case: TBL A: ID | TBL B: ID A_ID 1 1 1 2 Now A.order_by('b__a') did use a join to B, and B's a_id column. This was seen to contain the same value as A's id, and so the join was trimmed. But this wasn't correct as the join is LEFT JOIN, and for row A.id = 2 the B.a_id column is NULL.
2013-08-20Fixed #14043 -- Made sure nullable o2o delete works as expectedAnssi Kääriäinen
There was an old complaint about nullable one-to-one field cascading even when the o2o field was saved to None value before the deletion. Added an test to verify this doesn't happen. Also some PEP 8 cleanup.
2013-08-20Fixed #20943 -- Weakly reference senders when caching their associated receiversSimon Charette
2013-08-19Fixed an aggregation test failure on MySQL.Simon Charette
2013-08-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: docs/ref/django-admin.txt
2013-08-19Fixed #20640 -- Avoided NoReverseMatch in get_deleted_objectsRainer Koirikivi
The default delete action resulted in a NoReverseMatch if it were to list any Model with a ModelAdmin with `get_urls` overridden to remove the change url. Catching the error and not displaying the link in that case, as was already done for models with no registered admins. Thanks Keryn Knight for the report.
2013-08-19Fixed #12807 -- EmptyResultSet ORed conditionAnssi Kääriäinen
The EmptyResultSet wasn't treated correctly so the end results was incorrect, too. The bug had been already fixed in master so only tests added.
2013-08-19Fixed #11881 -- removed junk from aggregation subqueriesAnssi Kääriäinen
There were clauses that weren't needed in the subqueries. These were ORDER BY, SELECT FOR UPDATE and related selections.
2013-08-19Fixed #12886 -- aggregation over sliced querysetAnssi Kääriäinen
2013-08-19Add more stringent M2M tests and fix the bug they exposedAndrew Godwin