Commit Graph

7192 Commits

Author SHA1 Message Date
Ian Foote 32e804cdb7 [1.9.x] Fixed #25609 -- Fixed regression in related field nested lookup error.
Backport of 32ef48aa56 from master
2015-10-27 13:57:52 -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 1c0f598764 [1.9.x] Removed unnecessary app_label='auth' on auth_tests models.
This is a relic of when the tests were stored in contrib.auth.tests.

Backport of 590b8c1c57 from master
2015-10-27 08:38:19 -04:00
Tim Graham 0b4d11e175 [1.9.x] Fixed #25596 -- Fixed regression in password change view with custom user model.
The reverse() added in 50aa1a790c
crashed on a custom user model.

Backport of 5acf203db2 from master
2015-10-27 08:38:12 -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 ca46dc323b [1.9.x] Fixed "URLconf" spelling in code comments.
Backport of 37ea3cb03e from master
2015-10-22 14:47:15 -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
John Vandenberg 614ba3ad2d [1.9.x] Fixed quad quoted ("""") docstring starts.
Backport of 9e3f6c7483 from master
2015-10-20 12:20:11 -04:00
Tim Graham 994e7661a8 [1.9.x] Fixed #25562 -- Skipped a time dependent admin_filters test on Windows.
Backport of 4a50daf6b3 from master
2015-10-19 20:27:36 -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
Simon Charette 3aeb84df25 [1.9.x] Fixed #25560 -- Made empty string related_name invalid.
Thanks to Ali Lotfi for the initial report and patch
and Tim Graham for the review.

Backport of c1b6a8a98b from master
2015-10-19 10:11:36 -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
Yusuke Miyazaki 9039ff60e3 [1.9.x] Fixed #25346 -- Allowed collectstatic to delete broken symlinks.
Backport of 0922bbf18d from master
2015-10-17 14:14:29 -04:00
Tim Graham faafd55722 [1.9.x] Used SchemaEditor.delete_model() for teardown in schema tests.
Some third-party database backends (MSSQL) have custom
delete_model() requirements that must be executed.

Thanks Michael Manfre for the initial patch and review.

Backport of 4dcc2a1955 from master
2015-10-16 09:12:20 -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
Antoine Catton 38d6e1e2ad [1.9.x] Fixed #25535 -- Made ForeignObject checks less strict.
Check that the foreign object `from_fields` are a subset of any unique
constraints on the foreign model.

Backport of 80dac8c33e and
c7aff31397 from master
2015-10-14 05:26:42 -07:00
Tim Graham 7cd299584d [1.9.x] Fixed #22705 -- Fixed QuerySet.bulk_create() on models without any fields on Oracle.
Fixed on other backends by 134ca4d438.

Thanks Mariusz Felisiak for the solution.

Backport of 7a5b7e35bf from master
2015-10-09 14:42:31 -04:00
Tim Graham b646fbe4a7 [1.9.x] Fixed #14368 -- Allowed setting a reverse OneToOne relation to None.
Backport of 384ddbec1b from master
2015-10-09 10:59:57 -04:00
Daniel Wiesmann 4326ac687e [1.9.x] Fixed #25533 -- Changed datatype mapping for GDALRasters
Backport of 5d8985005e from master.
2015-10-09 16:03:42 +02: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
Pindi Albert 3429dfe11d [1.9.x] Fixed #25423 -- Made error message for unknown template tag more helpful.
Backport of 9f2881deb1 from master
2015-10-05 17:33: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 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
Antoine Catton db88e40312 [1.9.x] Refs #16860 -- Fixed password help text when there aren't any validators.
This avoids creating an empty list which is invalid HTML 4.

Backport of 53ccffdb8c from master
2015-09-28 15:31:18 -04:00
Claude Paroz fb901c82bf [1.9.x] Made tests/serializers/models.py a models package
Thanks Tim Graham for the patch series review.
Backport of 50acbf3ff6 from master.
2015-09-26 20:05:23 +02:00
Claude Paroz df87de345d [1.9.x] Moved remaining of serializers_regress to serializers tests
Backport of 4908222ac from master.
2015-09-26 20:04:51 +02:00
Claude Paroz b58f88f96d [1.9.x] Moved more serializers_regress to serializers tests
Backport of ddd6a530e from master.
2015-09-26 20:04:21 +02:00
Claude Paroz a74728b36d [1.9.x] Separated natural key serialization tests
Backport of d59d3caf3 from master.
2015-09-26 20:03:54 +02:00
Claude Paroz d31c38cddd [1.9.x] Separated JSON serialization tests
Backport of 6dc7af3e01 from master.
2015-09-26 20:03:26 +02:00
Claude Paroz 4eeec2031e [1.9.x] Separated XML serialization tests
Backport of d3cfdfb508 from master.
2015-09-26 20:03:00 +02:00
Claude Paroz 5452d39e01 [1.9.x] Separated YAML serialization tests
Backport of febd5aeec from master.
2015-09-26 20:02:25 +02:00
Tim Graham ffcf81969b [1.9.x] Removed redundancy in admin_changelist tests.
Backport of c42123adb1 from master
2015-09-25 10:41:08 -04:00
Tzu-ping Chung 9581ac39a8 [1.9.x] Fixed #25457 -- Improved formatting of password validation errors in management command output.
Backport of 7372cdebed from master
2015-09-24 19:45:48 -04:00
Simon Charette 8e8c0792c0 Refs #18081 -- Asserted db constraints are created for fk to proxy models. 2015-09-23 14:59:05 -04:00
Anton Baklanov d0ed01cef0 Fixed #25407 -- Removed network dependency in GeoIP tests. 2015-09-23 13:11:57 -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 7cb3a48843 Fixed #25410 -- Fixed empty ClearableFileInput crash on Python 2.
Reverted "Fixes #24727 -- Prevented ClearableFileInput from masking
exceptions on Python 2" and added a regression test.

This reverts commit 5c412dd8a7.
2015-09-23 10:26:19 -04:00
Alex Hill 134ca4d438 Fixed #24509 -- Added Expression support to SQLInsertCompiler 2015-09-22 23:35:24 +10:00
Alasdair Nicol f2975c021d Refs #23813 -- Moved URLconfs into module and tidied docstrings. 2015-09-21 20:10:33 -04:00
Nick Johnson 392f64842f Fixed #25373 -- Added warning logging for exceptions during {% include %} tag rendering. 2015-09-21 19:57:12 -04:00
Nick Johnson 85c52743f7 Refs #18773 -- Improved template variable exception logging message. 2015-09-21 19:27:01 -04:00
Aymeric Augustin 8bcff10b5a Fix import sorting problem. 2015-09-21 22:55:18 +02: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
Aymeric Augustin e542e81b39 Renamed descriptor classes for related objects.
The old names were downright confusing. Some seemed to mean the opposite
of what the class actually did.

The new names follow a consistent nomenclature:

    (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor.

I mentioned combinations that do not exist in the docstring in order to
help people who would search for them in the code base.
2015-09-21 22:20:42 +02: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
Jani Tiainen fcf494b48f Fixed #24688 -- Added Oracle support for new-style GIS functions. 2015-09-21 13:52:14 -04: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