summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2014-04-25Made sure cursor.close() does not complain if cursor is already closed on OracleShai Berger
Refs #22483
2014-04-24Prevented a crash in the cursor wrappers on Oracle.Aymeric Augustin
Fixed #22483 (again). Forwardport of 5cd6429620 from stable/1.7.x
2014-04-24Ignored repeated calls to connection.close().Aymeric Augustin
Forwardport of 9bbb43dd1a from stable/1.7.x
2014-04-23Fixed #21157 -- Fixed problems with ResolverMatchKevin Christopher Henry
- Fixed bug in get_callable() that caused resolve() to put a string in ResolverMatch.func. - Made ResolverMatch.url_name match the actual url name (or None). - Updated tests that used the string value in ResolverMatch.func, and added regression tests for this bug. - Corrected test urls whose dummy view paths caused failures (behavior that was previously masked by this bug).
2014-04-23Used the same instance of atomic for entry and exit.Aymeric Augustin
Since all state is maintained on the connection at this time and none in the atomic, it doesn't matter, but it could introduce some subtle bugs if the implementation changed in the future.
2014-04-23Wrapped migrations in a transaction only on DBs with transactional DDL.Aymeric Augustin
2014-04-23Set compile messages options as class variableClaude Paroz
Refs #18714. Same logic as options for makemessages commands.
2014-04-23Fixed #22495 -- Locmem cache.add() failed with infinite timeoutsMalcolm Box
cache.add() incorrectly succeeded when there was an existing key with an infinite (None) timeout.
2014-04-23Added Spatialite support to the new migration frameworkClaude Paroz
Refs #22451.
2014-04-23Used migration framework in GIS test tearDownClaude Paroz
2014-04-23Fixed #22486 -- Restored the ability to reverse views created using ↵Preston Timmons
functools.partial. Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054. Thanks rcoup for the report.
2014-04-22Use the stdlib's compare_digest for constant time comparisons when availableAlex Gaynor
2014-04-22Fixed #22426 -- Added support old-style d.c.messages format.Florian Apolloner
Forward ported code from 1.5 that adds backwards compatibility with legacy message length. See commit 9e7183073f64e541587e8dcfd8bb3ddeb47f8162 for details. Thanks to Ofir Ovadia for the initial patch.
2014-04-21Fixed queries that may return unexpected results on MySQL due to typecasting.Erik Romijn
This is a security fix; disclosure to follow shortly.
2014-04-21Prevented leaking the CSRF token through caching.Aymeric Augustin
This is a security fix. Disclosure will follow shortly.
2014-04-21Fixed 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.
2014-04-21Fixed table cleanup in GIS migration testsClaude Paroz
2014-04-21Fixed PostGIS remove_field implementationClaude Paroz
Fixed bad code introduced in 2f9d1576e8.
2014-04-21Fixed removal of GIS column in PostGIS 1.x migrationClaude Paroz
Refs #22481.
2014-04-21Fixed adding new GIS column in PostGIS 1.x migrationClaude Paroz
Refs #22451.
2014-04-21Fixed migrate when called inside a transaction.Florian Apolloner
This is useful for tests manually calling migrate inside a testcase, for normal usage this should make no difference, since there is no surrounding transaction after all. If there is one we still try to leave the transaction in a useable state (for postgres at least). If this commit turns out to be causing issues, settings savepoint=False is probably the right fix :)
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-20Fixed flake8 errors.Tim Graham
2014-04-18Fixed #22397 -- Issues removing M2M field with explicit through modelAndrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-18Adapted fixture read mode to file typeClaude Paroz
Binary mode added in ed532a6a1e is not supported by ZipFile. Refs #22399.
2014-04-18Fixed #22399 -- Forced fixture reading in binary modeClaude Paroz
This might help on systems where default encoding is not UTF-8 (and on Python 3). Thanks bacilla for the report.
2014-04-18Fixed #22465 -- New assertion assertJSONNotEqualamatellanes
2014-04-18Revert "Fixed #22397 -- Issues removing M2M field with explicit through model."Simon Charette
This reverts commit 00e3b9a2a992ee0b7288eeeb03e7cbd52ebc6dce. It's causing a regression when tested with the proxy_model_inheritance tests.
2014-04-17Fixed #22454 - Changed compatibility warning hintMoayad Mardini
The warning hint of `_check_test_runner` of 1.6 compatibility had a link to a general release note. The link should be edited to refer the relevant "Backwards incompatible changes in 1.6" section that documents the cause and the possible solutions and workarounds of the warning.
2014-04-17Fixed a KeyError on login with legacy sessions; refs #21649.Tim Graham
Thanks Loic for the report.
2014-04-17Merge pull request #2582 from alex/stdlib-pbkdf2hmacDonald Stufft
Use the stdlib's PBKDF2 implementation when available.
2014-04-17Fixed #22456 -- Replaced 900913 EPSG code by 3857 in some testsClaude Paroz
3857 is now the official EPSG code for the Google spherical mercator projection and some recent versions of GDAL do not recognize 900913 any longer. Thanks Tim Graham for the report and initial patch.
2014-04-17For another dayAlex Gaynor
2014-04-17Typo fixAlex Gaynor
2014-04-17Use the stdlib's PBKDF2 implementation when available.Alex Gaynor
This is a bit faster than ours, which is good, because it lets you increase the iteration counts. This will be used on Python 3.4+, and, pending the acceptance of PEP466, on newer Python 2.7s.
2014-04-17Fixed #22397 -- Issues removing M2M field with explicit through model.Andrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-16Revert "Fixed #22401 -- Deprecated regular expression parsing of initial SQL ↵Tim Graham
in favor of installing sqlparse." This reverts commit 071c9337750b296d198cced56f3ffad0e176afb6. This introduced a regression on MySQL and custom SQL is deprecated.
2014-04-16Fixed #22434 -- Retain ordering on related sliced subqueries.Justin Hamade
Thanks maciej.pawlisz for the report, and charettes for the review.
2014-04-16Fixed flake8 warnings introduced in recent commits.Simon Charette
2014-04-16Fixed #22460 -- Explicity remove constraints when dropping a related field.Motiejus Jakštys
2014-04-14Fixed #22356 -- Added a check to make sure unique_together fields are local.Marc Egli
2014-04-14Fixed #22369 -- Added count parameter to assertTemplateUsedJacob R. Rothenbuhler
2014-04-13Fixed #22350 -- Consistently serialize bytes and text in migrations.Simon Charette
Thanks to @treyhunner and Loïc for their suggestions and review.
2014-04-13Fixed #21760 -- prefetch_related used an inefficient query for reverse FK.valtron
Regression introduced by commit 9777442. Refs #21410.
2014-04-12Also allowed a non-overridden setting to be deletedClaude Paroz
Refs #20032, #18824. Thanks ztorstri at gmail.com for the report.
2014-04-12Fixed #22102 -- Made SimpleTestCase tests run before unittest.TestCase onesClaude Paroz
Thanks aptiko for the reporti and Tim Graham for the review.
2014-04-11Improved a comment. Thanks intgr for the report.Aymeric Augustin
2014-04-10Increased robustness of 58161e4e. Refs #22291.Aymeric Augustin
2014-04-10Fixed #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.
2014-04-10Fixed #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.