Commit Graph

1900 Commits

Author SHA1 Message Date
Tim Graham 774a893d0b [1.9.x] Fixed #25618 -- Added a helpful error message when Django & south migrations exist in the same directory.
Forwardport of 65bff161ff 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 71ebcb85b9.

Backport of 976bd519a8 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 1f07da3e29 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 d27085b02d 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 e542e81b39.

Backport of d6a9074783 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 ee66d8dd7d 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 230d8c7301 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 3db3ab71e9 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 6c95b134e9 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 b971c1cd78 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 914167abf1 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 3543fec3b7 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 6afa6818fc 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 b215a3ab63 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 58195f0b16 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 2eb5589a72 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 35355a4ffe 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 061801e3df 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 8d1a001ef6 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 a3a6def867 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 dfa81bb1df 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
Markus Holtermann 43f2eb7ef3 Fixed #25390 -- Allowed specifying a start migration in squashmigrations
Thanks Tim Graham for the review.
2015-09-19 14:55:34 +10:00
Markus Holtermann 5aa55038ca Fixed #24743, #24745 -- Optimized migration plan handling
The change partly goes back to the old behavior for forwards migrations
which should reduce the amount of memory consumption (#24745). However,
by the way the current state computation is done (there is no
`state_backwards` on a migration class) this change cannot be applied to
backwards migrations. Hence rolling back migrations still requires the
precomputation and storage of the intermediate migration states.

This improvement also implies that Django does not handle mixed
migration plans anymore. Mixed plans consist of a list of migrations
where some are being applied and others are being unapplied.

Thanks Andrew Godwin, Josh Smeaton and Tim Graham for the review as well
as everybody involved on the ticket that kept me looking into the issue.
2015-09-19 14:54:53 +10:00
fabrizio ettore messina 186eb21dc1 Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators. 2015-09-18 19:04:29 -04:00
sujayskumar d8d853378b Fixed #24944 -- Added extra_email_context parameter to password_reset() view. 2015-09-18 18:56:04 -04:00
Unai Zalakain aac2a2d2ae Fixed #13110 -- Added support for multiple enclosures in Atom feeds.
The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is
then used by the feed builder. If the feed is a RSS feed, an exception is
raised as RSS feeds don't allow multiple enclosures per feed item.

The ``item_enclosures`` hook defaults to an empty list or, if the
``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure``
built from the ``item_enclosure_url``, ``item_enclosure_length``, and
``item_enclosure_mime_type`` hooks.
2015-09-18 18:31:58 -04:00
Simon Charette 71ebcb85b9 Fixed #25417 -- Added a field check for invalid default values. 2015-09-18 14:31:36 -04:00
Tim Graham d074926ca1 Dropped support for Oracle 11.1. 2015-09-18 09:18:09 -04:00
Aric Coady f33b3ebd53 Refs #20625 -- Forwardported tests and release notes for queryset chaining fix.
The issue was fixed on master due to the removal of ValuesQuerySet.

Partial forwardport of 7d471fe662 from stable/1.8.x
2015-09-17 19:22:53 -04:00
Aymeric Augustin 4f6a7663bc Refs #14091 -- Fixed connection.queries on SQLite. 2015-09-17 23:01:33 +02:00
Matt Robenolt b0c56b895f Fixed #24496 -- Added CSRF Referer checking against CSRF_COOKIE_DOMAIN.
Thanks Seth Gottlieb for help with the documentation and
Carl Meyer and Joshua Kehn for reviews.
2015-09-16 12:21:50 -04:00
Moritz Sichert 535809e121 Fixed #25294 -- Allowed custom BoundFields on forms. 2015-09-16 10:18:07 -04:00
Adam Chainz 3fe3887a2e Fixed #25377 -- Changed Count queries to execute COUNT(*) instead of COUNT('*'). 2015-09-14 13:41:35 -04:00
Ville Skyttä 4d933ad418 Fixed #25393 -- Fixed MySQL crash when adding text/blob field with unhashable default. 2015-09-14 12:25:08 -04:00
Markus Holtermann 84b0a8d2aa Fixed #25384 -- Ordered imports in newly created migration files
Partial forwardport of 3cc5cc7958 from
stable/1.8.x as the issue was already fixed in master in
a7bc00e17b
2015-09-12 21:37:18 +10:00
Markus Holtermann a3c01b0dd8 Fixed #24919 -- Allowed disabling of migrations on a per app basis 2015-09-12 10:38:15 +10:00