summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-02-05[1.6.x] Revert "Fixed #20296 -- Allowed SafeData and EscapeData to be lazy"Baptiste Mispelon
This reverts commit 2ee447fb5f8974b432d3dd421af9a242215aea44. That commit introduced a regression (#21882) and didn't really do what it was supposed to: while it did delay the evaluation of lazy objects passed to mark_safe(), they weren't actually marked as such so they could end up being escaped twice. Refs #21882. Backport of a878bf9b093bf15d751b070d132fec52a7523a47 from master.
2014-02-04[1.6.x] Fixed #21748 -- join promotion for negated AND conditionsAnssi Kääriäinen
Made sure Django treats case .filter(NOT (a AND b)) the same way as .filter((NOT a OR NOT b)) for join promotion. Heavily modified backpatch of 35cecb1ebd0ccda0be7a518d1b7273333d26fbae from master. Conflicts: django/db/models/sql/query.py tests/queries/tests.py
2014-02-04[1.6.x] Fixed #21413 -- resolve_columns fields misalignmentAnssi Kääriäinen
Backpatch of 9918c11114ac3ec9622631558ef26ebf3919cb69 from master. Conflicts: django/db/models/sql/compiler.py tests/model_inheritance_regress/tests.py
2014-01-30[1.6.x] Made Oracle introspect FloatFields correctlyShai Berger
Broke InspectDBTestCase.test_field_types in two: - a test_number_field_types, which now passes on Oracle too - a test_field_types, for all non-numeric fields, which is still expected to fail Also made some pep8 fixes in the tests file. Refs #19884 Thanks Tim Graham for review. Backport of e9d12ba from master
2014-01-24[1.6.x] Fixed #21787 -- regression in MTI .exclude() queriesAnssi Kääriäinen
Backpatch of 78a2617703bc1dada409f126db5c3db214913ff4 from master.
2014-01-12[1.6.x] Fixed a test that was failing with PostGIS.Aymeric Augustin
Fixed #21452 again.
2014-01-12[1.6.x] Fixed #21452 -- Non-autocommit connections to PostgreSQL.Aymeric Augustin
When settings.DATABASES['default']['AUTOCOMMIT'] = False, the connection wasn't in autocommit mode but Django pretended it was. Thanks Anssi for analysing this issue. Refs #17062. Backport of 1afe7488 from master
2014-01-12[1.6.x] Fixed a test isolation issue. Refs #17062.Aymeric Augustin
This test could change settings.DATABASES['default']['TIME_ZONE'] and didn't restore the previous value. Backport of 1c24096f from master.
2014-01-01[1.6.x] Fixed set literals for python 2.6Florian Apolloner
2013-12-31[1.6.x] Fixed #21581 -- Fixed a number of issues with collectstatic.Loic Bistuer
When STATIC_ROOT wasn't set, collectstatic --clear would delete every files within the current directory and its descendants. This patch makes the following changes: Prevent collectstatic from running if STATIC_ROOT isn't set. Fixed an issue that prevented collectstatic from displaying the destination directory. Changed the warning header to notify when the command is run in dry-run mode. Backport of 4befb3015c from master
2013-12-31[1.6.x] Changed console and filebackend to use msg.as_bytes to output the ↵Florian Apolloner
data as it would get send via smtp. Backport of c988745cca1225496bfd36910dc3cec5065d8cc4 from master.
2013-12-31[1.6.x] Introduced as_bytes for SafeMIMEText (and other SafeMIME-classes).Florian Apolloner
This is to provide a consistent interface (namely bytes) for the smtp backend which after all sends bytes over the wire; encoding with as_string yields different results since mails as unicode are not really specified. as_string stays for backwardscompatibilty mostly and some debug outputs. But keep in mind that the output doesn't match as_bytes! Backport of 5dfd824d38ec7d1f695494e46d603e89cae68661 from master.
2013-12-28[1.6.x] Worked around a bug in python 3.3.3. Refs #21093Florian Apolloner
Backport of 280c1a65ccacd679bf298bf2b169ff01e7266b8e from master.
2013-12-11[1.6.x] Fixed #21473 -- Limited language preservation to logoutLudwik Trammer
Current language is no longer saved to session by LocaleMiddleware on every response (the behavior introduced in #14825). Instead language stored in session is reintroduced into new session after logout.
2013-12-11[1.6.x] Fixed #21510 -- Readded search reset link in changelist search barClaude Paroz
Thanks moritz.pfeiffer at alp-phone.ch for the report and Tim Graham for the initial patch. Backport of c7c647419c from master.
2013-12-07[1.6.x] Fixed #21551 -- Reenabled loading fixtures from subdirectoryClaude Paroz
This was a regression in Django 1.6 that was only partially restored in 839940f27f. Thanks Jonas Haag for the report. Backport of 41ebc4838d from master.
2013-12-07[1.6.x] Fixed #21568 -- Added missing ModelMultipleChoiceField to_python methodClaude Paroz
Thanks dibrovsd at gmail.com for the report and Simon Charette for the review. Backport of 8a9c8bb90 from master.
2013-12-07[1.6.x] Fixed #21530 -- Prevent AttributeError in default URLconf detection ↵Baptiste Mispelon
code. Thanks to @dmyerscoug for the report and original patch and to @alasdairnicol for the added tests. Backport of a020dd0a99da13d0f024d42c46f01d8f503e9d5e from master.
2013-12-02[1.6.x] Fixed #21538 -- Added numpy to test/requirements/base.txtAlasdair Nicol
Thanks Tim Graham for the report Backport of c75dd664cf from master
2013-12-01[1.6.x] Fixed incorrect type for max_length.Tim Graham
Backport of 3b60ffa334 from master
2013-11-26[1.6.x] Fixed #21448 -- Fixed test client logout with cookie-based sessionsClaude Paroz
Thanks Gunnar Scherf for the report and the suggested patch. Backport of 384816fcc from master.
2013-11-23[1.6.x] Fixed #21488 -- Multiple locales treatment in i18n commands.Ramiro Morales
Removed multiple locales separated by commas variation (that wasn't working as documented) in favor of simply allowing use of the ``--locale``/``-l`` options more than once for ``makemessages`` and ``compilemessages``. Thanks Romain Beylerian for the report and Claude, Simon for their help.
2013-11-22[1.6.x] Fixed #21443 -- Cannot show debug info on PY3's importlibBouke Haarsma
Thanks productions@zaziork.co.uk for the review. Backport of 18185724e6 from master.
2013-11-21[1.6.x] Fixed #21405 -- Prevented queryset overwrite in BaseModelAdminClaude Paroz
Thanks guido@20tab.com for the report and Tim Graham for the analyze. Backport of 1718b5256c from master.
2013-11-21[1.6.x] Fixed #21431 -- GenRel->FK list_filter regression in adminAnssi Kääriäinen
Report, analysis and tests from stephenmcd. Backpatch of 752d3d70da6291039f33781a0a2ef6f3b7c5fcb5 from master.
2013-11-20[1.6.x] Fixed #21472 -- Fixed inline formsets display when parent pk is 0Claude Paroz
Thanks agale031176@gmail.com for the report. Backport of fafb6cf049b from master.
2013-11-18[1.6.x] Fixed #21457 -- Allowed fixture file name to contain dotsClaude Paroz
Thanks Keryn Knight for the report. Backport of 97ac22ebfc from master.
2013-11-16[1.6.x] Fixed #21428 -- editable GenericRelation regressionAnssi Kääriäinen
The GenericRelation refactoring removed GenericRelations from model._meta.many_to_many. This had the side effect of disallowing editable GenericRelations in ModelForms. Editable GenericRelations aren't officially supported, but if we don't fix this we don't offer any upgrade path for those who used the ability to set editable=True in GenericRelation subclass. Thanks to Trac alias joshcartme for the report and stephencmd and Loic for working on this issue. Backpatch of 0e079e4331a8be4dbd18d5e5776116330b0a5e61 from master.
2013-11-15Fixed Python2.6 incompatibility caused by ↵Baptiste Mispelon
67c30426c1370f5d6c39bd73888c3902c1c5f365.
2013-11-14Fixed wrong override_settings path introduced by ↵Baptiste Mispelon
67c30426c1370f5d6c39bd73888c3902c1c5f365.
2013-11-14[1.6.x] Fixed #21432 -- DateTimeQuery now copies tzinfo when cloning.Loic Bistuer
Thanks Enrique Martínez for the report and @bmispelon for the tests. Backport of 17ed99f3a3eea4bd27fa34be59c3582616ed8079 from master.
2013-11-13[1.6.x] Fixed #21410 -- prefetch_related() for ForeignKeys with related_name='+'Loic Bistuer
Regression introduced by commit 9777442. Thanks to trac username troygrosfield for the report and test case. Backpatch of cb83448891f2920c926f61826d8eae4051a3d8f2 from master. Conflicts: tests/prefetch_related/models.py
2013-10-23[1.6.x] Workaround admin scripts test failures on Windows+Python 3.Ramiro Morales
Change strategy used to examine instrumented output to acommodate the fact that on Windows, where the path separator is '\', repr() of Python modules has changed in Python 3 to use escaped backslashes in the FS path section (e.g. 'C:\\python3x\\Lib\\site-packages\\django\\contrib\\auth\\models.py') without having to special-case based on platform. c04f3fc686 from master.
2013-10-22[1.6.x] Fixed #21307 -- Moved TransRealMixin to django.test.utils.Ramiro Morales
51d2e1fb23 from master.
2013-10-22[1.6.x] Decode from UTF-8 explicitly when reading a text file in makemessages.Ramiro Morales
This shows itself with Python 3 under Windows where UTF-8 usually isn't the default file I/O encoding and caused one failure and three errors in our test suite under that platform setup. b5f52647fe from master.
2013-10-22[1.6.x] Fixed an I18N test class tearDown method.Ramiro Morales
a3690168cb from master.
2013-10-18[1.6.x] Fixed #21284 -- Prevented KeyError swallowing in fetch_commandClaude Paroz
Thanks wildfire for the report. Backport of 3514bcb251 from master.
2013-10-17[1.6.x] Fixed #21282 -- Made HttpResponse.serialize_headers accept latin-1Claude Paroz
Thanks Raphaël Barrois for the report and the initial patch and Aymeric Augustin for the review. Backport of a14f087233 from master.
2013-10-14[1.6.x] Fixed #21269 -- Don't crash when CommandError contains non-asciiClaude Paroz
Thanks kontakt@eikefoken.de for the report. Backport of 42a67ec1cd from master.
2013-10-13Fixed #21198 -- Prevented invalid use of @python_2_unicode_compatible.Aymeric Augustin
Thanks jpic for the report and chmodas for working on a patch. Reverts 2ea80b94. Refs #19362. Conflicts: tests/utils_tests/test_encoding.py
2013-10-13[1.6.x] Fixed #19560 -- Identified field in warning for naive datetime.Aymeric Augustin
Thanks gcc for the report and vajrasky for the patch. Backport of 570d9c2678d6cc564f9c70138554af8f7ce9ec49 from master.
2013-10-09[1.6.x] Fixed #21243 -- Corrected exception message in multiple database tests.Russell Keith-Magee
Thanks to vajrasky for the report and patch. Backport of a971d19 from trunk.
2013-10-08[1.6.x] Refs #21197 -- Clarified upgrade check message.Russell Keith-Magee
Thanks to Carl and Shai for the discussion. Backport of 8ff4303 from master.
2013-10-03[1.6.x] Fixed #21165 -- Fix test for syndication feed timestamp field on ↵Ramiro Morales
Windows. Thanks Michael Manfre for the report, Raphaël Barrois for the patch and Claude Paroz, Aymeric Augustin for the reviews. Refs #7936 62dfd79f8b from master.
2013-10-02[1.6.x] Fixed #21122 -- Improved clean up of test temp directory on WindowsKevin Christopher Henry
- Fixed test that didn't close the files it opened - Caught and handled exception when temp directory cannot be removed Backport of 978e1351a6 of master
2013-10-02[1.6.x] Fixed Python 2.6 compatability for ↵Tim Graham
3ec368014d0d74e14a7ed98ccfd638ffe0e62863.
2013-10-02[1.6.x] Fixed #21129 -- Prevented admin filter params modifications from ↵tschilling
throwing an exception. Thanks Tuttle for the report. Backport of 5381317fe3 from master
2013-10-02[1.6.x] Made test for issue 19552 compatible with Windows.Ramiro Morales
Take in account platform path separator. Refs #19552. 651bed0918 from master.
2013-10-02[1.6.x] Made skipping of symlink-related makemessages test smarter.Ramiro Morales
os.symlink() is available starting with Windows Vista but can fail at runtime. 0f46ec315e from master.
2013-10-01[1.6.x] Fixed tests breakage from last commit.Ramiro Morales