summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-04-23[1.6.x] Fixed #22486 -- Restored the ability to reverse views created using ↵Tim Graham
functools.partial. Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054. Thanks rcoup for the report. Backport of 3c06b2f2a3 from master
2014-04-21[1.6.x] Fixed queries that may return unexpected results on MySQL due to ↵Erik Romijn
typecasting. This is a security fix. Disclosure will follow shortly. Backport of 75c0d4ea3ae48970f788c482ee0bd6b29a7f1307 from master
2014-04-21[1.6.x] Prevented leaking the CSRF token through caching.Aymeric Augustin
This is a security fix. Disclosure will follow shortly. Backport of c083e3815aec23b99833da710eea574e6f2e8566 from master
2014-04-21[1.6.x] Fixed a remote code execution vulnerabilty in URL reversing.Tim Graham
Thanks Benjamin Bach for the report and initial patch. This is a security fix; disclosure to follow shortly. Backport of 8b93b31487d6d3b0fcbbd0498991ea0db9088054 from master
2014-04-13[1.6.x] Fixed #21760 -- prefetch_related used an inefficient query for ↵valtron
reverse FK. Regression introduced by commit 9777442. Refs #21410. Conflicts: tests/prefetch_related/tests.py Backport of d3b71b976d from master
2014-04-10[1.6.x] Fixed #21202 -- Maintained atomicity when the server disconnects.Aymeric Augustin
Thanks intgr for the report. This commit doesn't include a test because I don't know how to emulate a database disconnection in a cross-database compatible way. Also simplified a 'backends' test that was constrained by this problem. Backport of 81761508 from master
2014-04-10[1.6.x] Fixed #21239 -- Maintained atomicity when closing the connection.Aymeric Augustin
Refs #15802 -- Reverted #7c657b24 as BaseDatabaseWrapper.close() now has a proper "finally" clause that may need to preserve self.connection. Backport of 25860096 from master.
2014-04-10[1.6.x] Fixed #22291 -- Avoided shadowing deadlock exceptions on MySQL.Aymeric Augustin
Thanks err for the report. Backport of 58161e4e from master.
2014-04-10Fixed a broken test introduced in 6fa7d7c5. Refs #21553.Aymeric Augustin
Thanks Shai.
2014-04-10[1.6.x] Fixed #22343 -- Disallowed select_for_update in autocommit modeShai Berger
The ticket was originally about two failing tests, which are fixed by putting their queries in transactions. Thanks Tim Graham for the report, Aymeric Augustin for the fix, and Simon Charette, Tim Graham & Loïc Bistuer for review. Backport of b990df1d63 from master
2014-04-09[1.6.x] Fixed #21553 -- Ensured unusable database connections get closed.Aymeric Augustin
Backport of 5f2f47f from master
2014-04-01Fixed #22256 -- Replaced bad fallback for missing PATHPatrick Michaud
Thanks Baptiste Mispelon for the review. Backport of acee46fc9 from master.
2014-03-31[1.6.x] Fixed #22360 -- Fixed two non-deterministic tests in Python 3.4.Loic Bistuer
The order of admin's changelist filters in the querystring relied on dict ordering. Backport of 4d996b8e69 from master
2014-03-31[1.6.x] Fixed #21795 -- Made add_preserved_filters account for url prefixes.Loic Bistuer
Thanks to trac username honyczek for the report. Refs #6903. Backport of 4339e9a92d from master
2014-03-30[1.6.x] Fixed #22338 -- Fixed a test dependent on dictionary key iteration ↵Tim Graham
order. Backport of 69a4f383f6 from master
2014-03-22[1.6.x] Tweaked strip_tags tests to pass on Python 3.3Claude Paroz
Backport of 6a0291bda from master.
2014-03-22[1.6.x] Removed a strip_tags test for older Python versionsClaude Paroz
Django's custom HTMLParser for older Python versions cannot parse convoluted syntax.
2014-03-22[1.6.x] Improved strip_tags and clarified documentationClaude Paroz
The fact that strip_tags cannot guarantee to really strip all non-safe HTML content was not clear enough. Also see: https://www.djangoproject.com/weblog/2014/mar/22/strip-tags-advisory/ Backport of 6ca6c36f8 from master.
2014-03-13[1.6.x] Fixed #22245 -- Avoided widget overwrite in forms.IntegerField ↵Claude Paroz
subclasses Thanks Jeroen Pulles for the report and Simon Charette for the review. Backport of 5a976b4bec7 from master.
2014-02-28[1.6.x] Fixed #21643 -- repeated execution of qs with F() + timedeltaAlexey Voronov
Thanks Tim Graham for review and Tai Lee for the additional test to prove this was a regression in 1.6. Backport of 7f2485b4d1 and 8137215973 from master
2014-02-20[1.6.x] Fixed #22107 -- Fixed django.core.files.File object iteration.Baptiste Mispelon
Due to a mixup between text and bytes, iteration over a File instance was broken under Python 3. Thanks to trac user pdewacht for the report and patch. Backport of 3841feee86cae65165f120db7a5d80ffc76dd520 from master.
2014-02-14[1.6.x] Fixed #21566 -- Fixed AttributeError when using bulk_create with ↵Roger Hu
ForeignObject. Backport of bbc73e6a12 from master.
2014-02-13[1.6.x] Added a missing import in staticfiles tests.Tim Graham
2014-02-12[1.6.x] Reworked the detection of local storages for the collectstatic command.Loic Bistuer
Before 4befb30 the detection was broken because we used isinstance against a LazyObject rather than against a Storage class. That commit fixed it by looking directly at the object wrapped by LazyObject. This could however be a problem to anyone who subclasses the collectstatic management Command and directly supplies a Storage class. Refs #21581. Backport of 7e27885c6e7588471fd94a4def16b7081577bdfc from master.
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.