1
0
mirror of https://github.com/django/django.git synced 2025-04-07 23:16:46 +00:00

7909 Commits

Author SHA1 Message Date
Claude Paroz
246e516f29 [1.10.x] Unified SpatiaLite spelling
Backport of ade681b9ad2a97833cd3f06530fba01e51250b32 from master.
2016-08-09 18:48:57 +02:00
Ed Morley
233ec837f6 [1.10.x] Fixed docs to refer to HSTS includeSubdomains as a directive.
The spec refers to it as a 'directive' rather than a 'tag':
https://tools.ietf.org/html/rfc6797#section-6.1.2

Backport of 8c3bc5cd7801a307a0bc2969abebe7a6ca48d17f from master
2016-08-08 20:22:09 -04:00
Sjoerd Job Postmus
2f18cbc313 [1.10.x] Fixed #27026 -- Fixed state initialization of bulk_create() objects if can_return_ids_from_bulk_insert.
Backport of 3246d2b4bb981a8d782a349a99e9b89206028cee from master
2016-08-06 10:25:29 -04:00
Ben Demboski
d68b145a6f [1.10.x] Fixed #27027 -- Restored Client.force_login() defaulting to the first auth backend.
Backport of fc8f097117af7ada616fad20ae5b417fcf740413 from master
2016-08-06 08:42:17 -04:00
Jarek Glowacki
1e16e141ac [1.10.x] Fixed #27004 -- Made migrations consistency check ignore unapplied squashed migrations.
Backport of d117567c7d65c3c28858c4dfc771483b182075e4 from master
2016-08-05 18:11:38 -04:00
Claude Paroz
6757c94662 [1.10.x] Fixed #26983 -- Fixed isnull filtering on ForeignKey with to_field
Thanks weidwonder for the report.
Backport of 272eccf7ff0ced609e5a5e3bb6b4a40e773e0e66 from master.
2016-08-04 16:07:11 +02:00
Tim Graham
dcebeea270 [1.10.x] Fixed #27005 -- Fixed crash if request.META[''CONTENT_LENGTH']=''.
Backport of 5c63b3e5a797102d915e1683971517f747a28013 from master
2016-08-03 14:01:08 -04:00
Tim Graham
348406c381 [1.10.x] Fixed a GeoIP test failure with the latest data.
Backport of 4a696bbe13383b14b2762cc5accd45849e9dcfba from master
2016-08-03 11:16:15 -04:00
Alex Hill
86ae2b22ae [1.10.x] Fixed #27001 -- Fixed a query count regression in ModelChoiceField with RadioSelect.
Backport of c5ebfda00226e3695cadbc13ea9ce4c5951d3ed0 from master
2016-08-03 10:53:42 -04:00
Sergey Yurchenko
a8b8ef114d [1.10.x] Fixed #26997 -- Fixed checks crash with empty Meta.default_permissions.
Backport of 4e64e3bb6e96a50b057bc1144fba3efdee7dfc10 from master
2016-08-03 09:14:27 -04:00
Tim Graham
fa4b5c1b93 [1.10.x] Fixed #26988 -- Improved/clarified User.is_authenticated/anonymous compatibility.
Thanks marktranchant for the report and review.

Backport of 54afa960d1ee8c63635225a0f0a2489971b5aab5 from master
2016-08-02 11:26:40 -04:00
Tim Graham
d5dbf2e166 [1.10.x] Fixed admin_utils test failures due to translation updates.
Backport of 24123c31362b5f3783d84d133c160e9fe16805fe from master
2016-08-01 15:44:20 -04:00
Jon Dufresne
6a3f31fa33 [1.10.x] Fixed #26927 -- Made subwidget iteration pass disabled and required attributes.
Backport of ac3aaaa740dcf9c6efd2f88ee9219c1924c7695e from master
2016-08-01 10:49:37 -04:00
Tim Graham
ddcf7dbae7 [1.10.x] Fixed #26930 -- Prevented makemigrations from accessing an empty database.
Thanks Liz Lemon for the report and investigation and
Claude Paroz for the test.

Backport of aad46c3e370e105f9117a337924090d05f1b001d from master
2016-08-01 07:57:25 -04:00
Tim Graham
83b950e9ff [1.10.x] Refs #25550 -- Corrected deprecation message for assigning M2M relations.
Backport of 5fa4370543658aedd79dc554d8c52684d6c7cbca from master
2016-07-30 20:50:54 -04:00
Tim Graham
c6e5878410 [1.10.x] Fixed #26970 -- Fixed crash with disabled ModelMultipleChoiceField.
Backport of 4e861682904744b0ea3ead8552513c6f1a826c5a from master
2016-07-30 20:45:37 -04:00
Tomas Pazderka
d61dbc20cf [1.10.x] Fixed #26896 -- Allowed a lazy base_url for FileSystemStorage.
Backport of b820b6108a7d3f11ec18774d16d657f4f63fe9fa from master
2016-07-29 14:16:03 -04:00
Tim Graham
8735710def [1.10.x] Fixed a typo in tests/middleware/test_security.py
Backport of 0850236a8c3647bc3c239bd34afae0488abe5c60 from master
2016-07-28 22:01:12 -04:00
Sergey Fedoseev
25581e6382 [1.10.x] Refs #26657 -- Fixed a crash induced by invalid WKT returned by MySQL 5.7.5+.
Backport of 4178488881f4e703c4e47ea78720dd61e0230ce5 from master
2016-07-28 18:09:47 -04:00
Olexander Yermakov
714e287d9a [1.10.x] Fixed #26949 -- Fixed crash of disabled forms.JSONField.
Backport of 68de48c96328e13d5dbdb1f3006e4a1ca74f3c34 from master
2016-07-27 08:43:07 -04:00
Tim Graham
3744fc1666 [1.10.x] Fixed #26917 -- Fixed crash in disabled ModelChoiceFields.
Partially reverted refs #25532 to fix a regression in Django 1.10.
This reintroduces a crash for disabled forms.JSONField (refs #26949),
however, that issue is also present on Django 1.9.

Thanks Ryan Schave for the test.

Backport of a5f85d891b51d7ceb4f9e422e3e4f5c741062288 from master
2016-07-27 08:36:49 -04:00
Alex Hill
d53e3c1e07 [1.10.x] Fixed #26915 -- Fixed regression handling responses returned from view middleware.
Backport of 44a6b4028033890d4a3832875c774db321182de6 from master
2016-07-25 13:46:44 -04:00
Jon Dufresne
c0026a9d2d
[1.10.x] Fixed #26938 -- Fixed invalid HTML in template postmortem on the debug page.
Backport of 348cfccd9072f0e08ffe4cfb3946d1dc6a629e86 from master
2016-07-24 18:25:43 +02:00
Alex Hill
4e8ccb3274
[1.10.x] Fixed #26945 -- Ensured that i18n_patterns returns a list
Backport of 971120778a7e7b7ebc2fc48275cca20a87580efe from master
2016-07-24 17:20:40 +02:00
Dmitry Dygalo
b3f96b5f73 [1.10.x] Fixed #26922 -- Fixed SimpleTestCase.assertHTMLEqual() crash on Python 3.5+.
Backport of d7a097265b1842843a73ce0da36ef98bacac8a3e from master
2016-07-21 17:06:48 -04:00
Raphaël Hertzog
2d1aeccacc [1.10.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.
Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master
2016-07-21 13:01:10 -04:00
Simon Charette
dcf0a35b08 [1.10.x] Fixed #26916 -- Fixed prefetch_related when using a cached_property as to_attr.
Thanks Trac alias karyon for the report and Tim for the review.

Backport of 271bfe65d986f5ecbaeb7a70a3092356c0a9e222 from master
2016-07-19 16:09:23 -04:00
Tim Graham
53d17f9e75 [1.10.x] Fixed a GeoIP test failure with the latest data.
Backport of 081fdaf110386db940d834ba51d93e23aa293fcd from master
2016-07-19 09:28:39 -04:00
Tim Graham
6fa150b2f8 [1.10.x] Fixed XSS in admin's add/change related popup.
This is a security fix.
2016-07-18 11:17:19 -04:00
Tim Graham
a03ac61332 [1.10.x] Fixed #26900 -- Fixed crash accessing deferred FileFields.
Backport of 7c33aa8a87d323f0e8e5368705aa8ba96f9819d0 from master
2016-07-16 08:47:29 -04:00
Claude Paroz
de9af3912c [1.10.x] Refs #26897 -- Added cleanup to i18n test 2016-07-14 22:39:28 +02:00
Claude Paroz
208eead787 [1.10.x] Refs #26897 -- Missing directory containment in i18n test 2016-07-14 21:44:47 +02:00
Marten Kenbeek
06323dafc7 [1.10.x] Fixed #26888 -- Fixed concurrency issue in URL resolver.
Fixed a regression in 625b8e9295d79650208bfb3fca8bf9e6aaf578e4:
improper short-circuiting could lead to a KeyError when threads
concurrently call RegexURLResolver._populate().

Backport of 389a5318a06e7e4d8f8aba14af88c4cc4ea0db47 from master
2016-07-14 14:42:23 -04:00
Claude Paroz
96a37a0266 [1.10.x] Fixed #26897 -- Fixed makemessages crash on Python 2 with non-ASCII file names
Thanks Tim Graham for the review.
Backport of 3e71f6544feca490211e88db4f449dfdb7acce39 from master.
2016-07-14 20:39:00 +02:00
Jon Dufresne
acb804e552 [1.10.x] Fixed #26890 -- Fixed IntegerField crash on Unicode numbers.
Backport of 76e19da5b0385d4f8afda509e0b60f77f7ffc4c2 from master
2016-07-14 09:39:18 -04:00
Tim Graham
5c56ce7a3f [1.10.x] Reverted "Fixed #25388 -- Added an option to allow disabling of migrations during test database creation"
This reverts commit 157d7f1f1de4705daddebb77f21bd7097a74513d since it
disables migrations all the time, not just during tests.

Backport of 944e66cb1db6614ef0644b9030dd1d75e950767c from master
2016-07-14 09:22:06 -04:00
Jon Dufresne
1a2ee697e0 [1.10.x] Fixed #26889 -- Fixed missing PostgreSQL index in SchemaEditor.add_field().
Backport of 2e4cfcd2b9a0984ad6c4087a5deebbf33413835c from master
2016-07-13 21:55:25 -04:00
Andrey Fedoseev
ded5020241 [1.10.x] Fixed #17657 -- Made ModelForm respect ModelMultipleChoiceField's to_field_name.
Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc.

Backport of 81963b37a92ef583b9f725f1a78dd2ca97c1ab95 from master
2016-07-12 16:20:28 -04:00
Julien Hartmann
39c25b772b [1.10.x] Fixed #26749 -- Preserved behavior of use_for_related_field during deprecation.
Backport of f4afb85d7e900123fa8f88110adc011ab184e153 from master
2016-07-11 13:34:18 -04:00
Baptiste Mispelon
4b6560f5a9 [1.10.x] Fixed numpy deprecation warning silencing in template_tests.
Backport of 418658f453bed7fe7949dda26651aab370003e6a from master
2016-07-09 10:24:27 -04:00
Loïc Bistuer
a2af2420ce [1.10.x] Fixed #26881 -- Fixed duplicate managers in migrations.
When both parent and child models had managers with the same name and
a migrations opt-in both were added to the migration state.

Backport of dab83e5ba108c08a04ae400ac5354fd73e26c6f5 from master
2016-07-09 18:12:18 +07:00
Tim Graham
567cfc1601 [1.10.x] Replaced use of TestCase.fail() with assertRaises().
Also removed try/except/fail antipattern that hides exceptions.

Backport of c9ae09addffb839403312131d4251e9d8b454508 from master
2016-07-01 09:58:56 -04:00
Andrew Nester
f683bba6f6 [1.10.x] Fixed #25292 -- Fixed crash in ManyToManyField.through_fields check.
Backport of baff4dd37dabfef1ff939513fa45124382b57bf8 from master
2016-06-30 08:55:21 -04:00
Christopher Grebs
712838a53d [1.10.x] Fixed #26119 -- Fixed URLValidator crash on URLs with brackets.
Backport of a9e188ccd6315d278795355a53bce6c1a63f5a50 from master
2016-06-28 15:44:07 -04:00
Eduard Stepanov
28de25c249 [1.10.x] Fixed #26786 -- Avoided redundant max value validators on integer fields.
Backport of 49b4596cb4744e4b68d56e6a540a3e15c1582963 from master
2016-06-28 11:40:59 -04:00
Aaron Elliot Ross
198128684b [1.10.x] Fixed #26171 -- Made MySQL create an index on ForeignKeys with db_contraint=False.
Refactored "Prevented unneeded index creation on MySQL-InnoDB" (2ceb10f)
to avoid setting db_index=False.

Backport of 6bf7964023487f2a352084e74aca27aecb354d6c from master
2016-06-28 08:22:36 -04:00
Jon Dufresne
5c04852455 [1.10.x] Refs #26034 -- Corrected a schema test to work with the correct field state.
Backport of d47f6d75ef67dbd18abf2bb927753f739a9c117d from master
2016-06-27 12:16:52 -04:00
akki
7f249e73dd [1.10.x] Fixed #26795 -- Factored out get_changes() in test_autodetector.py.
Backport of ca77b509059831b055a3b735ff77e042f8e1c0eb from master
2016-06-24 22:01:56 -04:00
Sergey Fedoseev
be1022d0e7 [1.10.x] Fixed #26785 -- Made Oracle return None rather than empty string for empty geometries.
Backport of ea4665066b651e0e2730f2e2d85fcef9d7ac7966 from master
2016-06-21 18:51:08 -04:00
Simon Charette
23ac35af19 [1.10.x] Fixed #26781 -- Made table name case change a noop on SQLite.
SQLite disgresses from the SQL standard by ignoring case of quoted identifiers.

Thanks to laozzzi for the report and Tim for the review.

Backport of c2e62fd1aed093c4d9ff84e3d86e6a85c8aa1917 from master
2016-06-21 16:38:00 -04:00