1
0
mirror of https://github.com/django/django.git synced 2025-03-14 19:30:46 +00:00

1915 Commits

Author SHA1 Message Date
Tim Graham
5bb40e7608 [1.9.x] Refs #24937 -- Forwardport of 1.8.7 release note.
Forwardport of 3ded51bcf21f384b2e80ce97aff5c12d63e5f0e3 from stable/1.8.x
2015-11-11 17:02:19 -05:00
Marti Raudsepp
1eed16b9db [1.9.x] Fixed #25720 -- Made gettext() return bytestring on Python 2 if input is bytestring.
This is consistent with the behavior of Django 1.7.x and earlier.

Backport of d3e3703a15cd9d294406121bc43be0c75b1a4e0e from master
2015-11-11 08:57:41 -05:00
Tim Graham
b2e12ea813 [1.9.x] Updated six to 1.10.0.
Backport of 4c593eaa5f6767ac56a677299c984ee46c88a2cb from master
2015-11-11 06:54:06 -05:00
Ian Foote
f9a08eb897 [1.9.x] Fixed #25693 -- Prevented data loss with Prefetch and ManyToManyField.
Thanks to Jamie Matthews for finding and explaining the bug.

Backport of 4608573788c04fc047da42b4b7b48fdee8136ad3 from master
2015-11-10 12:12:45 -05:00
Tim Graham
3dcdfcc8d3 [1.9.x] Refs #25618 -- Forwardported 1.8.7 release note.
Forwardport of 8c8a6d8a3f869ecc4d72b96ddb4760a1b59d5e62 from stable/1.8.x
2015-11-10 10:44:55 -05:00
Marti Raudsepp
8db5122d69 [1.9.x] Fixed #25683 -- Allowed ModelChoiceField(queryset=...) to accept Managers.
This fixes a regression from refs #25496.

Backport of 1155843a41af589a856efe8e671a796866430049 from master
2015-11-09 12:44:34 -05:00
Tim Graham
6858bf758c [1.9.x] Refs #25686 -- Forwardported 1.8.7 release note. 2015-11-09 11:00:03 -05:00
Aymeric Augustin
ca0278f496 [1.9.x] Fixed debug view crash during autumn DST change.
This only happens if USE_TZ = False and pytz is installed (perhaps not
the most logical combination, but who am I to jugde?)

Refs #23714 which essentially fixed the same problem when USE_TZ = True.

Thanks Florian and Carl for insisting until I wrote a complete patch.

Backport of 1014ba026e879e56e0f265a8d9f54e6f39843348 from master
2015-11-09 06:56:44 -05:00
Tim Graham
1b72e3fbf3 [1.9.x] Added stub release notes for 1.8.7.
Backport of d49b36e485d201dd230a01f6cb8ea6e8e4fddb49 from master
2015-11-05 09:43:42 +01:00
Tim Graham
4dc34becf6 [1.9.x] Added release date for 1.8.6. 2015-11-04 17:48:26 +01:00
Tim Graham
8b1c386f80 [1.9.x] Fixed #25100 -- Documented an upgrade caveat for contenttypes migration.
Backport of 81b55fb90078788bfdc064550f2ff9da2c79d3b6 from master
2015-10-30 10:31:05 -04:00
Tim Graham
83607e2b7a [1.9.x] Fixed #23985 -- Documented a backwards incompatible change in URLValidator.
Backport of 8c5b8018f69226389a1373523c41cd37883c9556 from master
2015-10-29 18:07:02 -04:00
Tim Graham
adc9fa8324 [1.9.x] Fixed #25489 -- Documented that SESSION_SAVE_EVERY_REQUEST doesn't create empty sessions.
Backport of abf5ccc29c45d53ec17541179bb5f0a75b28915d from master
2015-10-29 17:29:16 -04:00
Simon Charette
6eaf43a244 [1.9.x] Fixed #25622 -- Accounted for generic relations in the admin to field validation
Thanks to Jonathan Liuti for the report and Tim Graham for the review.

Backport of 9dcfecb7c6c8285630ad271888a9ec4ba9140e3a from master
2015-10-29 13:15:40 -04:00
Dheerendra Rathor
6bb9f51ab8 [1.9.x] Fixed #25620 -- Made URLValidator prohibit URLs with consecutive dots in the domain section.
Backport of 96fe90f5356971e0e51a0bc41e045dde600d7521 from master
2015-10-29 11:14:20 -04:00
Tim Graham
774a893d0b [1.9.x] Fixed #25618 -- Added a helpful error message when Django & south migrations exist in the same directory.
Forwardport of 65bff161ffab1310719bdee495d1e9b35f838c31 from stable/1.8.x
2015-10-28 10:19:35 -04:00
Simon Charette
da9e9484f2 [1.9.x] Revert "Fixed #25417 -- Added a field check for invalid default values."
This reverts commit 71ebcb85b931f43865df5b322b2cf06d3da23f69.

Backport of 976bd519a879b2fd7a356cb21bde32696adb545f from master
2015-10-27 11:17:02 -04:00
Tim Graham
64a9115bce [1.9.x] Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid value.
Backport of 1f07da3e29c7c3d47968e1c4531dd9bf902575b7 from master
2015-10-27 08:13:21 -04:00
Tim Graham
ec388ee174 [1.9.x] Documented Python 3.5 support for Django 1.8.
Forwardport of d27085b02d58ecf8b72e7189b6a5feaf634ec977 from stable/1.8.x
2015-10-26 10:13:50 -04:00
Tim Graham
1a6258c090 [1.9.x] Documented related model descriptor class renames.
Renamed in e542e81b39e8610b70cf1d68f95ece0279028765.

Backport of d6a907478345b6b2fe259a2fe70e6d29676f1a7e from master
2015-10-26 08:54:33 -04:00
Claude Paroz
e241444ef5 [1.9.x] Fixed #25592 -- Fixed misnamed strictly_above PostGIS lookup
Fixes a regression from 2bd1bbc42. Thanks Daniel Wiesmann for the report
and Tim Graham for the review.
Backport of c08f85fd54 from master.
2015-10-22 20:33:55 +02:00
Tim Graham
02f3084f4e [1.9.x] Fixed #25584 -- Documented a pip error when installing Django 1.9.
Backport of ee66d8dd7df8326c453fd04c2bdeb5225df934be from master
2015-10-22 10:09:04 -04:00
Yusuke Miyazaki
a083d70192 [1.9.x] Fixed #25578 -- Corrected the casing of "GitHub".
Backport of 230d8c7301281176a31443a2f4f425828291e46d from master
2015-10-21 07:32:28 -04:00
Simon Charette
522b0bc91f [1.9.x] Fixed #25563 -- Cached deferred models in their proxied model's _meta.apps.
Thanks to Andriy Sokolovskiy for the report and Tim Graham for the review.

Backport of 3db3ab71e97d34260057a6f51d4b2f72da30dc8d from master
2015-10-19 20:13:16 -04:00
Josh Smeaton
7a3b486ccd [1.9.x] Fixed #25517 -- Made Concat function idempotent on SQLite.
Backport of 6c95b134e9b2d5641c123551c080305e90e6a89d from master
2015-10-17 15:56:00 -04:00
Tim Graham
d1ccf7b784 [1.9.x] Forwardported 1.8.6 release note. 2015-10-14 12:24:43 -07:00
Antoine Catton
36e7d275ec [1.9.x] Fixed #25506 -- Allowed filtering over a RawSQL annotation.
Co-Authored-By: Gavin Wahl <gwahl@fusionbox.com>

Backport of b971c1cd78a0bf831c1c30080089c4a384d037a0 from master
2015-10-14 11:24:12 -07:00
Mariusz Felisiak
fbe8930745 [1.9.x] Fixed #25503 -- Fixed system check crash on ForeignKey to abstract model.
Backport of 914167abf19d16ac97c0f1f6ae1b08cb377c8f3a from master
2015-10-06 19:23:53 -04:00
Riccardo Magliocchetti
6f653f759a [1.9.x] Refs #12118 -- Allowed "mode=memory" in SQLite test database names.
Backport of 3543fec3b739864c52de0a116dde3b0e5e885799 from master
2015-10-06 12:33:21 -04:00
Tim Graham
6bc8bdf55a [1.9.x] Fixed #25496 -- Made ModelChoiceField respect prefetch_related().
Backport of 6afa6818fcf25665bbf61f0921c8c8c6fa8f223e from master
2015-10-05 19:19:09 -04:00
Tim Graham
9f31439e67 [1.9.x] Fixed #25502 -- Added supported Python versions in 1.7, 1.8 release notes.
Backport of b215a3ab63d1c34746855594656e988561484fe3 from master
2015-10-05 14:20:06 -04:00
Tim Graham
9b91c7d99d [1.9.x] Added stub release notes for 1.8.6.
Backport of 58195f0b16999245ada6bd010b71c9c5352ae608 from master
2015-10-03 19:58:32 -04:00
Tim Graham
c5268b1a74 [1.9.x] Added release date for 1.8.5.
Backport of 2eb5589a721488b592ed05d6790d9ad7d2b9dafd from master
2015-10-03 19:35:18 -04:00
Ben Kraft
63a1e912a7 [1.9.x] Fixed #25389 -- Fixed pickling a SimpleLazyObject wrapping a model.
Pickling a `SimpleLazyObject` wrapping a model did not work correctly; in
particular it did not add the `_django_version` attribute added in 42736ac8.
Now it will handle this and other custom `__reduce__` methods correctly.

Backport of 35355a4ffedb2aeed52d5fe3034380ffc6a438db from master
2015-10-03 13:01:08 -04:00
Tim Graham
3569e9d4a1 [1.9.x] Refs #24505 -- Forwardported 1.8.5 release note.
Backport of 061801e3dfb3f88550cdaeef1a6dd1c24c13d53d from master
2015-09-30 18:47:44 -04:00
Tim Graham
59027a4cae [1.9.x] Fixed #25466 -- Added backwards compatibility aliases for LoaderOrigin and StringOrigin.
Thanks Simon Charette for the DeprecationInstanceCheck class.

Backport of 8d1a001ef6dcbbe8053da05cdb3ec99965b0953f from master
2015-09-29 19:20:11 -04:00
Mariusz Felisiak
6a0b4faf43 [1.9.x] Fixed #25421 -- Fixed test --keepdb option on Oracle.
Backport of a3a6def867c61d24dfded6cbfef7f820409dc739 from master
2015-09-26 19:52:06 -04:00
Samir Shah
eae5f738ba [1.9.x] Fixed typo in 1.9 release notes.
Backport of dfa81bb1df81637be333e9a67120a1670703a941 from master
2015-09-24 08:02:06 -04:00
Tim Graham
6b37719616 Refs #24526 -- Made the django logger handle INFO messages.
Without an explicit 'level', only messages at WARNING or higher
are handled. This makes the config consistent with the docs
which say, "The django catch-all logger sends all messages at
the INFO level or higher to the console."
2015-09-23 11:33:49 -04:00
Tim Graham
0e723ead52 Refs #21927 -- Added examples to urls.include() changes in 1.9 release notes. 2015-09-23 09:32:35 -04:00
Alex Hill
134ca4d438 Fixed #24509 -- Added Expression support to SQLInsertCompiler 2015-09-22 23:35:24 +10:00
Nick Johnson
392f64842f Fixed #25373 -- Added warning logging for exceptions during {% include %} tag rendering. 2015-09-21 19:57:12 -04:00
Aymeric Augustin
91e9f1c972 Fixed #24921 -- set_autocommit(False) + ORM queries.
This commits lifts the restriction that the outermost atomic block must
be declared with savepoint=False. This restriction was overly cautious.

The logic that makes it safe not to create savepoints for inner blocks
also applies to the outermost block when autocommit is disabled and a
transaction is already active.

This makes it possible to use the ORM after set_autocommit(False).
Previously it didn't work because ORM write operations are protected
with atomic(savepoint=False).
2015-09-21 22:21:53 +02:00
ramez
1335aa2fb9 Fixed #15760 -- Added JavaScript events for admin inline forms. 2015-09-21 15:34:44 -04:00
Claude Paroz
65a1055a36 Fixed #25431 -- Readded inline foreign keys to modelformset instances
Too much field exclusions in form's construct_instance() in _post_clean()
could lead to some unexpected missing ForeignKey values.
Fixes a regression from 45e049937. Refs #13776.
2015-09-21 21:30:49 +02:00
Alasdair Nicol
fe3fc5210f Fixed #23813 -- Added checks for common URL pattern errors
Thanks jwa and lamby for the suggestions, and timgraham and jarshwah
for their reviews.
2015-09-21 23:46:21 +10:00
Josh Smeaton
534aaf56f4 Fixed #24629 -- Unified Transform and Expression APIs 2015-09-21 19:56:24 +10:00
Tim Graham
ebaa24f588 Removed unused sections in 1.9 release notes. 2015-09-19 20:18:42 -04:00
Tim Graham
bed83e0fb5 Alphabetized a few sections in the 1.9 release notes + made a few tweaks. 2015-09-19 20:15:39 -04:00
Aymeric Augustin
c3904deb91 Fixed #25160 (again) -- Moved data loss check on reverse relations.
Moved data loss check when assigning to a reverse one-to-one relation on
an unsaved instance to Model.save(). This is exactly the same change as
e4b813c but for reverse relations.
2015-09-19 20:27:53 +02:00