1
0
mirror of https://github.com/django/django.git synced 2025-07-21 01:59:26 +00:00

7335 Commits

Author SHA1 Message Date
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
Anssi Kääriäinen
25496f0f7b [1.9.x] Fixed #26153 -- Reallowed Q-objects in ForeignObject.get_extra_descriptor_filter().
Backport of 353aecbf8c1a8cc6f3985149e2895d49e53dfc1c from master
2016-02-11 09:00:38 -05:00
Simon Charette
58723722e9 Fixed #26162 -- Checked query name clashes of hidden relationships.
Although reverse accessor clashes should be skipped query name can't be hidden.

Thanks to Ian Foote and Tim Graham for the review.
2016-02-08 10:31:01 -05:00
Tim Graham
6b689a505c [1.9.x] Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.
Backport of 97eb3356b2a7488c8d0ca0e47ef3e538852d44a2 from master
2016-02-08 07:41:56 -05:00
Blake Griffith
daa80aceec [1.9.x] Changed gypsy to manouche in docs and tests.
"Gypsy" is considered a slur by the Romani people whom it refers to.
"manouche jazz" is used in place of "gypsy jazz" and is an accepted
term for the same genre of music.

Backport of 5fdbd9e36c861cb9f2cdb255a1bf693de8876f6b from master
2016-02-03 09:48:01 -05:00
Buddy Lindsey, Jr
3a063b0dcc [1.9.x] Fixed #26155 -- Skipped URL checks if no ROOTURL_CONF setting.
Backport of 731bdfe68ae8dd332702b1838db44f0efe433e2e from master
2016-02-01 14:00:08 -05:00
Myk Willis
adbca5e4db [1.9.x] Fixed incorrect permissions check for admin's "Save as new".
This is a security fix.
2016-02-01 12:05:08 -05:00
Tim Graham
01db3249e5 [1.9.x] Fixed #26129 -- Made invalid forms display initial values of disabled fields.
Backport of 04564eb74d2d92eaf88b22ab8cec7ef45978111e from master
2016-01-29 08:08:04 -05:00
Tim Graham
efd8554815 [1.9.x] Fixed #20415 -- Ensured srid isn't localized in OpenLayers JavaScript.
Backport of 19d1cb14519186902d7e27813bf2643fe3f7cfa3 from master
2016-01-28 18:02:10 -05:00
Tim Graham
61452616ba [1.9.x] Fixed #26147 -- Relaxed expected values in GIS tests to account for database/library differences.
Backport of 5aa53286758fbb1fb864a5efda38718a2ca96759 from master
2016-01-28 14:38:27 -05:00
Yoong Kang Lim
ca6830c49f [1.9.x] Added a missing test method in tests/migrations/test_writer.py.
Backport of 5453aa66cfdf228f40dc1997d811ca986de405a3 from master
2016-01-28 10:38:57 -05:00
Claude Paroz
ca6ab72bb7 [1.9.x] Fixed #26138 -- Ensured geometry_field's geometry is always serialized
Thanks Bernd Schlapsi for the report.
Backport of 54236a2c1c from master.
2016-01-28 08:52:28 +01:00
Ben Kraft
dee5896b55 [1.9.x] Fixed #26122 -- Fixed copying a LazyObject
Shallow copying of `django.utils.functional.LazyObject` or its subclasses has
been broken in a couple of different ways in the past, most recently due to
35355a4.

Backport of 13023ba86746980aace2341ba32a9419e7567751 from master
2016-01-26 06:57:27 -05:00
Preston Timmons
218cc71073 [1.9.x] Fixed #25848 -- Set template origin on each node.
Prior to 55f12f8709, the template origin was available on each node via
`self.token.source[0]`. This behavior was removed when debug handling was
simplified, but 3rd-party debugging tools still depend on its presence.
This updates the Parser to set origin on individual nodes. This enables the
source template to be determined even when template extending or including is
used.

Backport of cfda1fa3f8d95f0f4a369da9021dbd770e5fa44a from master
2016-01-26 06:23:51 -05:00
Simon Charette
645fddcd4e [1.9.x] Refs #24919 -- Used the documented way of disabling migrations per app.
Backport of 477274acb46b2f07666e9f84dea2e65ea6b63ad3 from master
2016-01-25 22:02:51 -05:00