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

7215 Commits

Author SHA1 Message Date
Simon Charette
ef78aec222 [1.9.x] Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.
Backport of 1c5f4e86bc9c7bae5d5f3830d9cfbb0043297261 from master
2015-11-14 12:08:35 -05:00
Simon Charette
cfa3d4a256 [1.9.x] Refs #25745 -- Isolated some postgres array field check tests.
Backport of d95b22bd56764c71047ec16f628c00c0fd997cfd from master
2015-11-14 12:08:34 -05:00
Simon Charette
77e579087e [1.9.x] Refs #25745 -- Avoided multiple registration of the same model in schema tests.
Backport of 64240263f22055cb539159e9359e64d5096f39d9 from master
2015-11-14 12:08:34 -05:00
Simon Charette
fb016e6c55 [1.9.x] Refs #25745 -- Isolated a foreign_object test.
Backport of 2eefbca1a4140d8a8174a06a1f0160fcc76d8f64 from master
2015-11-14 12:08:34 -05:00
Simon Charette
e8512811cd [1.9.x] Refs #25745 -- Isolated an order_with_respect_to test.
Backport of 406de4c243e3618c13c36c23e07a4aa33162b344 from master
2015-11-14 12:08:34 -05:00
Simon Charette
c049c43e28 [1.9.x] Fixed #25723 -- Made related field checks lookup against their local apps.
Backport of c550beb0ccc8855fde7ff50ada530f7ceff1a595 from master
2015-11-14 12:08:33 -05:00
Tim Graham
a58150df3f [1.9.x] Fixed admin_filters test failures when run in reverse.
Backport of b1b14587aedbb4fd37a99b7bf5345abae279322d from master
2015-11-14 11:32:05 -05:00
Dmitry Dygalo
fe79bc3ed9 [1.9.x] Fixed #25666 -- Fixed the exact lookup of ArrayField.
Backport of 263b3d2ba132ea443193dc0b728741317742c8d3 from master
2015-11-14 11:21:53 -05:00
Tim Graham
9b3e79e58e [1.9.x] Bumped mysqlclient test requirement to >= 1.3.7.
mysqlclient 1.3.7 fixes the test failures caused by 1.3.6.

Backport of 2514e044a7fce58176c4e79eec298f3d8f70e89b from master
2015-11-12 21:34:40 -05:00
Tim Graham
623b8c99fe [1.9.x] Fixed SyntaxWarning in a user_commands test. 2015-11-12 17:17:28 -05:00
Simon Charette
164cbdac7d [1.9.x] Refs #25693 -- Added a regression test for to_attr validation on forward m2m.
Backport of cc8c02fa0fa2119704d1c39ca8509850aef84acc from master
2015-11-11 12:27:15 -05:00
Simon Charette
946e7679f3 [1.9.x] Fixed #25730 -- Made Model.__str__() always return str instances.
Thanks to Kevin Turner for the report and Tim for the review.

Backport of 4cd5d846d4a0a62bba6edf435a8ae9c6dcfacb43 from master
2015-11-11 12:19:34 -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
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
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
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
Claude Paroz
194f893f02 [1.9.x] Removed ability to pass a geometry string to GIS functions
This was a possible confusion source with column name arguments.
Thanks Sergey Fedoseev for the suggestion.
2015-11-07 16:06:08 +01:00
Ville Skyttä
a3bbc38d54 [1.9.x] Fixed #25668 -- Misc spelling errors
Backport of 3ee18400ae9b916da1a3bee9c9c630fd223a2d3c from master
2015-11-03 10:33:05 +00:00
Sergey Fedoseev
306efc8e45 [1.9.x] Fixed #25661 -- Fixed checking number of points during list assignment for LinearRing.
Backport of 1b598b4b4 from master.
2015-11-02 22:42:10 +01:00
Tim Graham
703369fb25 [1.9.x] Refs #24499 -- Removed an obsolete test check for PostGIS 1.5.
Backport of ab873e7a681e62d6803a3c04a051a47335f7b93a from master
2015-10-30 11:30:08 -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
46850e2c85 [1.9.x] Ignored docutils deprecation warnings in runtests.py.
Backport of dbe79d966025e3173557617113e2cca2eb1d1338 from master
2015-10-28 14:07:22 -04:00
Ian Foote
32e804cdb7 [1.9.x] Fixed #25609 -- Fixed regression in related field nested lookup error.
Backport of 32ef48aa562e6aaee9983f5d0f1c60f02fd555fb 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 71ebcb85b931f43865df5b322b2cf06d3da23f69.

Backport of 976bd519a879b2fd7a356cb21bde32696adb545f 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 590b8c1c57217bd8bd33998bae490dbe3d09f045 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 50aa1a790ca66c2a93e0a52e00c53375b269ff49
crashed on a custom user model.

Backport of 5acf203db2e9562dbe4073bf85d5043ef3121ea9 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 1f07da3e29c7c3d47968e1c4531dd9bf902575b7 from master
2015-10-27 08:13:21 -04:00
Tim Graham
ca46dc323b [1.9.x] Fixed "URLconf" spelling in code comments.
Backport of 37ea3cb03e80de80380009a7a7939bc48d75abe9 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 9e3f6c7483d2362660e2bee554125d0215789d9d 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 4a50daf6b343db1b5c316aa29efd657e160d0cd3 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 3db3ab71e97d34260057a6f51d4b2f72da30dc8d 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 c1b6a8a98b08fedfa3f3c69bc7add94c5841ba57 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 6c95b134e9b2d5641c123551c080305e90e6a89d 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 0922bbf18d3ae8f37e1823df2dbc270d33334548 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 4dcc2a195595f8d7ddad45bc4baf98ffdeec7f41 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 b971c1cd78a0bf831c1c30080089c4a384d037a0 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 80dac8c33e7f6f22577e4346f44e4c5ee89b648c and
c7aff31397a7228f6ac2e33c10ebdf36c4b7a9b7 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 134ca4d438bd7cbe8f0f287a00d545f96fa04a01.

Thanks Mariusz Felisiak for the solution.

Backport of 7a5b7e35bf2e219225b9f26d3dd3e34f26e83e9c 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 384ddbec1b73a4636f234da3894fde8f8420bb63 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 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
Pindi Albert
3429dfe11d [1.9.x] Fixed #25423 -- Made error message for unknown template tag more helpful.
Backport of 9f2881deb127593e8e0fa25e978aad9029d7b562 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 35355a4ffedb2aeed52d5fe3034380ffc6a438db 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 8d1a001ef6dcbbe8053da05cdb3ec99965b0953f 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 53ccffdb8c8e47a4d4304df453d8c79a9be295ab 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