1
0
mirror of https://github.com/django/django.git synced 2025-07-21 18:19:12 +00:00

7349 Commits

Author SHA1 Message Date
Claude Paroz
9c12eb55ce [1.9.x] Fixed #26341 (again) -- Addressed multiple occurrences per line use case
Backport of 4731e9d8 from master.
2016-05-02 19:41:13 +02:00
Claude Paroz
4a6bdff430 [1.9.x] Fixed #26341 -- Fixed makemessages breaking location comments for HTML files
Thanks Sylvain Garancher for the report and Veranika Sabiashchanskaya for the
initial patch.
Backport of b16b124996 from master.
2016-04-30 12:11:11 +02:00
Alasdair Nicol
cd2ac512e6 [1.9.x] Added tests for if tag's != operator.
Backport of 246020efc59de1a64b52fdda6a460904151dae36 from master
2016-04-29 12:31:12 -04:00
Joshua Phillips
e0af590bde [1.9.x] Fixed #26557 -- Converted empty strings to None when saving GenericIPAddressField.
Backport of 4681d65048ca2553895e10c2c492997b0a78ffba from master
2016-04-29 10:14:48 -04:00
Tim Graham
d2338bae78 [1.9.x] Refs #26428 -- Added support for relative path redirects to the test client.
Thanks iktyrrell for the patch.

Backport of 2f698cd9916cb3d64932248c7114049e02b74fb3 from master
2016-04-29 09:16:31 -04:00
Tim Graham
8a135cca4e [1.9.x] Fixed #26554 -- Updated docs URLs to readthedocs.io
Backport of f945fb24a31737c6625205a8cd90eabdf1c33584 from master
2016-04-28 10:15:23 -04:00
Simon Charette
a06fa6e7d3 [1.9.x] Fixed #26536 -- Preserved leading dashes of the cached template loader keys.
Thanks Anders Roos for the report.

Backport of bd145e7209a0e628cced10384bd6f62d65c0f211 from master
2016-04-24 22:17:36 -04:00
Tobias Kroenke
845d43e37e [1.9.x] Fixed #26520 -- Fixed a regression where SessionBase.pop() didn't return a KeyError.
Backport of b040ac06ebba2348cece7390b88f746d2c91d07b from master
2016-04-20 13:11:33 -04:00
Nicolas Noé
ebb55a247c [1.9.x] Refs #24621 -- Added a test for SessionBase.pop()'s 'default' argument.
Backport of 973f393761253f5fbf031f435d103545f1927041 from master
2016-04-20 12:57:42 -04:00
Matthew Schinckel
799e81ef6b [1.9.x] Fixed #26475 -- Added functools.partial() support to migrations autodetector.
Backport of 5402f3ab09413a571fd9d3aa27f6c76ec42ff891 from master
2016-04-19 10:17:29 -04:00
Lukasz Wiecek
51400cbce8 [1.9.x] Fixed #26498 -- Fixed TimeField microseconds round-tripping on MySQL and SQLite.
Thanks adamchainz for the report and review.

Backport of d3c87a2425b30400c3e6ea76585a9a537b6d0386 from master
2016-04-18 09:49:13 -04:00
Tim Graham
192b065949 [1.9.x] Fixed #26428 -- Added support for relative path redirects in assertRedirects().
Thanks Trac alias master for the report and review.

Backport of d2569f89f28883d07ede0e44a0a69ae678d3b35f from master
2016-04-02 10:35:55 -04:00
Michal Petrucha
5c1944f918 [1.9.x] Refs #26384, #24995 -- Avoided a module-level MySQL query in the schema tests.
Backport of d81d02d449edd046a94de5f171f4ae87fa331c7d from master
2016-04-02 08:18:03 -04:00
Attila Tovt
0325483e37 [1.9.x] Made MakeMigrationsTests call proper parent method
Backport of 00dbd02f7ecbd369eddcb00ef138e452f84b4ae3 from master
2016-04-02 10:13:15 +02:00
Claude Paroz
97ccab126c [1.9.x] Refs #25532 -- Removed a failing test on Django 1.9
That test is failing on Django 1.9, that issue has been fixed on master
only as it touches a part of form validation that is too important to
touch for a stable release.
2016-04-01 15:51:16 +02:00
Claude Paroz
6a8ba2eef4 [1.9.x] Fixed #25532 -- Properly redisplayed JSONField form input values
Thanks David Szotten for the report and Tommy Beadle for code inspiration.
Thanks Tim Graham for the review.
Partial backport of db19619545 from master.
2016-04-01 09:10:35 +02:00
Tim Graham
a0e3cbaa2b [1.9.x] Refs #26384, #24995 -- Skipped a schema test on older MySQL versions.
Backport of f3595b25496691966d4ff858a3b395735ad85a6e from master
2016-03-31 12:16:31 -04:00
Alex Hill
ed87af3266 [1.9.x] Fixed #26384 -- Fixed renaming the PK on a model with a self-referential FK on SQLite.
Backport of 4b2cf1cd27587a30b3b081091627d7ee13141afe from master
2016-03-29 13:26:59 -04:00
Simon Charette
026574e03c [1.9.x] Fixed #26413 -- Fixed a regression with abstract model inheritance and explicit parent links.
Thanks Trac alias trkjgrdg for the report and Tim for investigation and review.

Backport of 67cf5efa31acb2916034afb15610b700695dfcb0 from master
2016-03-28 21:15:16 -04:00
Tim Graham
5fbb542625 [1.9.x] Sorted single letter imports per the latest version of isort.
Backport of 1c8c0837c61a9e9eb2129df29f75be92e47e926c from master
2016-03-28 11:56:16 -04:00
Tim Graham
1f15d442bf [1.9.x] Fixed #26387 -- Restored the functionality of the admin's raw_id_fields in list_editable.
Backport of acfaec3db5ba39de52f6e607e74343dccf72fba1 from master
2016-03-25 14:22:38 -04:00
ieatkittens
ccc367fd48 [1.9.x] Fixed #26293 -- Fixed CommonMiddleware to process PREPEND_WWW and APPEND_SLASH independently.
Backport of 9390da7fb6e251eaa9a785692f987296cb14523f from master
2016-03-23 09:29:37 -04:00
Jason Parrott
4e8c265319 [1.9.x] Fixed #26373 -- Fixed reverse lookup crash with a ForeignKey to_field in a subquery.
Backport of 4c1c93032f4a015cbb4b33958603d18ac43515b4 from master
2016-03-19 17:55:31 -04:00
Berker Peksag
b4bb2ad13d [1.9.x] Fixed #26297 -- Fixed collectstatic --clear crash if storage doesn't implement path().
Backport of 28bcff82c5ed4694f4761c303294ffafbd7096ce from master
2016-03-17 09:51:48 -04:00
Alex Hill
f49cfb76c7 [1.9.x] Fixed #26306 -- Fixed memory leak in cached template loader.
Backport of ecb59cc6579402b68ddfd4499bf30edacf5963be from master
2016-03-16 12:43:37 -04:00
Vincenzo Pandolfo
c6424efbc6 [1.9.x] Fixed #26334 -- Removed whitespace stripping from contrib.auth password fields.
Backport of d0fe6c915665fa3220e84bd691ba7002a357e5c5 from master
2016-03-14 20:24:19 -04:00
Adam Alton
b50e4ffe7e [1.9.x] Removed unnecessary filter kwarg from .get() in a test.
Backport of 38086c83aca881aa72bc2eba1e6eadaa76529ed0 from master
2016-03-14 18:57:26 -04:00
Jon Dufresne
bf7a35c329 [1.9.x] Fixed test_dumpdata_progressbar to use the instantiated StringIO object.
Backport of cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6 from master
2016-03-14 10:29:47 -04:00
Tim Graham
c5e258eed3 [1.9.x] Removed unneeded GeoManagers in tests.
Backport of 9027fac8414c30db640c4592ee083f12bb8ee5a6 from master
2016-03-11 13:38:54 -05:00
Tim Graham
5b6c751230 [1.9.x] Fixed #26324 -- Fixed DurationField with fractional seconds on SQLite.
Backport of 4f0cd0fd162122da96978b357ac9fc9534529410 from master
2016-03-10 19:16:20 -05:00
Przemysław Suliga
76926f343a [1.9.x] Fixed #26332 -- Fixed a race condition in BaseCache.get_or_set().
Backport of 96ec67a7cf89a136e793305343c5bba8521cdb47 from master
2016-03-08 11:45:09 -05:00
John-Mark Bell
809eb5ddee [1.9.x] Fixed #26325 -- Made MultiPartParser ignore filenames that normalize to an empty string.
Backport of 4b129ac81f4fa38004950d0b307f81d1e9b44af8 from master
2016-03-07 13:22:11 -05:00
George Marshall
4702c1ac98 [1.9.x] Fixed #26331 -- Fixed test function names with typos
Backport of 75614f6d4c1a3fe779a75eb3e787452cccd1d814 from master
2016-03-07 06:51:43 -05:00
Claude Paroz
9c195d45a6 [1.9.x] Added safety to URL decoding in is_safe_url() on Python 2
The errors='replace' parameter to force_text altered the URL before checking
it, which wasn't considered sane. Refs 24fc935218 and ada7a4aef.
Backport of 552f03869e from master.
2016-03-04 23:38:32 +01:00
Claude Paroz
78f4830056 [1.9.x] Fixed #26308 -- Prevented crash with binary URLs in is_safe_url()
This fixes a regression introduced by c5544d28923.
Thanks John Eskew for the reporti and Tim Graham for the review.
Backport of ada7a4aef from master.
2016-03-04 21:15:44 +01:00
Alasdair Nicol
6679cdd92c [1.9.x] Fixed #26303 -- Updated links to mod_wsgi docs.
Backport of 8c42cf0cbd87f344748423f235938dd6ade03f55 from master
2016-03-01 19:22:54 -05:00
Florian Apolloner
af7d09b0c5 [1.9.x] Fixed CVE-2016-2513 -- Fixed user enumeration timing attack during login.
This is a security fix.
2016-03-01 11:38:49 -05:00
Mark Striemer
fc6d147a63 [1.9.x] Fixed CVE-2016-2512 -- Prevented spoofing is_safe_url() with basic auth.
This is a security fix.
2016-03-01 11:38:49 -05:00
Simon Charette
48cf751640 [1.9.x] Fixed #26186 -- Documented how app relative relationships of abstract models behave.
This partially reverts commit bc7d201bdbaeac14a49f51a9ef292d6312b4c45e.

Thanks Tim for the review.

Refs #25858.

Backport of 0223e213dd690b6b6e0669f836a20efb10998c83 from master
2016-02-29 22:13:54 -05:00
Simon Charette
ba6f83ec95 [1.9.x] Fixed #26286 -- Prevented content type managers from sharing their cache.
This should prevent managers methods from returning content type instances
registered to foreign apps now that these managers are also attached to models
created during migration phases.

Thanks Tim for the review.

Refs #23822.

Backport of 3938b3ccaa85f1c366909a4839696007726a09da from master
2016-02-26 16:22:17 -05:00
Ivan Tsouvarev
cd46947ddb [1.9.x] Fixed #26280 -- Fixed cached template loader crash when loading nonexistent template.
Backport of 8890c533e0b53cb0021bd5faf15668430cd3075a from master
2016-02-26 08:02:34 -05:00
Jon Dufresne
04780e8a25 [1.9.x] Fixed #26267 -- Fixed BoundField to reallow slices of subwidgets.
Backport of b41268135995cef46d40e550f9301fab20cf330d from master
2016-02-24 07:03:24 -05:00
Tim Graham
3fedfc452f [1.9.x] Fixed #26253 -- Fixed crashing deprecation shims in SimpleTemplateResponse.
Thanks David Reitter for the report and initial patch.
2016-02-22 17:07:07 -05:00
Tim Graham
07ffee6411 [1.9.x] Fixed #26204 -- Reallowed dashes in top-level domains for URLValidator.
Thanks Shai Berger for the review.

Backport of b1afebf882db5296cd9dcea26ee66d5250922e53 from master
2016-02-18 19:51:29 -05:00
Akshesh
0d2b97ca18 [1.9.x] Fixed #26219 -- Fixed crash when filtering by Decimal in RawQuery.
Backport of fdccc02576ae5a524338f65e629948604d80b4c8 from master
2016-02-17 14:00:38 -05:00
Berker Peksag
f78892f2de [1.9.x] Refs #19353 -- Added tests for using custom user models with built-in auth forms.
Also updated topics/auth/customizing.txt to reflect that subclasses of
UserCreationForm and UserChangeForm can be used with custom user models.

Thanks Baptiste Mispelon for the initial documentation.

Backport of f0425c72601f466c6a71518749c6d15b94945514 from master
2016-02-17 10:42:54 -05:00
Claude Paroz
205cafd01e [1.9.x] Fixed #26215 -- Fixed RangeField/ArrayField serialization with None values
Also added tests for HStoreField and JSONField.
Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and
the review.
Backport of 928c12eb1 from master.
2016-02-16 21:09:16 +01:00
Alexey Kotlyarov
765e6c411c [1.9.x] Fixed #26212 -- Made forms.FileField and translation.lazy_number() picklable.
Backport of b59f963ad2a49322725b20fac71661bd49643443 from master
2016-02-15 11:45:44 -05:00
Berker Peksag
33b5bb7930 [1.9.x] Fixed #26126 -- Fixed transient failure of test_max_age_expiration
Backport of b17a9150a0c3a132e82b53755ede62a45f897875 from master
2016-02-15 09:26:58 -05:00
Anssi Kääriäinen
1d9ee181fe [1.9.x] Fixed #26196 -- Made sure __in lookups use to_field as default.
Thanks Simon Charette for the test.

Backport of 46ecfb9b3a11a360724e3375ba78c33c46d6a992 from master
2016-02-11 11:09:55 -05:00