Commit Graph

7251 Commits

Author SHA1 Message Date
Luis San Pablo 4f2eb5fc5d [1.9.x] Fixed #25981 -- Added need to update migrations to on_delete deprecation warning.
Backport of a856555df2 from master
2015-12-24 08:08:51 -05:00
Tomo Otsuka bc5eed8fb0 [1.9.x] Fixed #25972 -- Restored support for the isnull lookup with ForeignObject.
Backport of 8b6974a685 from master
2015-12-24 07:35:08 -05:00
Tim Graham dac48234d3 [1.9.x] Fixed #25729 -- Fixed flaky admin_widgets selenium test: test_ForeignKey_using_to_field
Backport of 5081adcb90 from master
2015-12-23 14:02:07 -05:00
Tim Graham 2f205e073b [1.9.x] Refs #25969 -- Replaced usage of render_to_response() with render() in tests.
Backport of edf3b88f1a from master
2015-12-23 10:23:41 -05:00
Tim Graham c80d85d4ad [1.9.x] Fixed #25903 -- Fixed the admin's list_editable add/change buttons.
Backport of f18b08748a from master
2015-12-21 09:30:39 -05:00
Tim Graham a80fb8ae24 [1.9.x] Fixed #25922 -- Fixed migrate --fake-initial detection of many-to-many tables.
Backport of fa9ce4e9a6 from master
2015-12-19 13:50:06 -05:00
Claude Paroz f0a4ff2b11 [1.9.x] Fixed #25915 -- Allowed language not in Django's default LANGUAGES
This fixes a regression introduced by a5f6cbce07.
Thanks Gavin Wahl for the report and Tim Graham for the review.
Backport of cd3c042b0 from master.
2015-12-18 17:51:52 +01:00
Claude Paroz ff077cd649 [1.9.x] Fixed #25942 -- Fixed TypedChoiceField.has_changed with nullable field
This fixes a regression introduced by 871440361.
Backport of d91cc25a2a from master.
2015-12-17 15:39:34 +01:00
Simon Charette c4c72ade6f [1.9.x] Fixed #25852 -- Made sure AlterModelManager forces a reload of its model state.
Thanks to Geoffrey Sechter and the Django NYC group for the report and Markus
for the review.

Backport of c4e372aaf4 from master
2015-12-15 14:53:45 -05:00
Sergey Fedoseev 192d1eb5c3 [1.9.x] Fixed #25894 -- Fixed evaluation of zero-length slices of QuerySet.values().
Backport of 69b69f6d60 from master
2015-12-15 07:30:30 -05:00
Simon Charette c402db2e2f [1.9.x] Fixed #25882 -- Prevented fast deletes matching no rows from crashing on MySQL.
Thanks to Trac aliases gerricom for the report, raphaelmerx for the
attempts to reproduce and Sergey Fedoseev and Tim for the review.

Refs #16891

Backport of 8035cee922 from master
2015-12-14 13:13:47 -05:00
Tim Graham 3c69d52377 [1.9.x] Fixed #25909 -- Added unicode_literals import to apps.py generated by startapp.
Backport of 10427646b8 from master
2015-12-12 09:50:17 -05:00
Sergey Fedoseev 515f149e4d [1.9.x] Fixed #25883 -- Fixed admin deletion page summary counts for related objects.
Backport of 8ab58b8052 from master
2015-12-10 18:11:45 -05:00
Federico Frenguelli 722fae4b51 [1.9.x] Fixed #25412 -- Fixed missing PostgreSQL index on Char/TextField when using AlterField.
Thanks to Emanuele Palazzetti for the help.

Backport of 3a36c80795 from master
2015-12-10 16:19:36 -05:00
Derek J. Curtis 364d7d9690 [1.9.x] Fixed #25900 -- Fixed regression in CommonMiddleware ETag support.
Backport of 6be9589eb3 from master
2015-12-10 14:00:49 -05:00
Tim Graham 521db45875 [1.9.x] Moved a few CommonMiddleware tests to the correct test class.
Backport of 5bc881541c from master
2015-12-10 13:45:33 -05:00
Shai Berger f1964bc7e2 [1.9.x] Refs #25896 -- Fixed migration test failure on Oracle
The test creates and deletes a model in the same migration, and the model
had an AutoField. On Oracle, AutoField's are set up using deferred SQL, which
in this case was trying to modify a table after it had dbeen removed.

Backport of c8b3fbe from master
2015-12-10 02:19:30 +02:00
Amos Onn f076cf07ef [1.9.x] Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().
Backport of 542b7f6c50 from master
2015-12-09 11:08:01 -05:00
Simon Charette c0da598077 [1.9.x] Fixed #25867 -- Fixed a system check crash with nested ArrayFields.
Thanks to Jean Gourds for the report, Tim and Claude for the review.

Backport of 59b57e672c from master
2015-12-07 15:04:13 -05:00
Alex Morozov 0154702a98 [1.9.x] Fixed #25548 -- Prevented FormView.form_invalid() from discarding its form argument.
Backport of e171a83b15 from master
2015-12-07 08:12:48 -05:00
Emre Yilmaz 9733ff5f99 [1.9.x] Fixed #25840 -- Fixed BaseCache.get_or_set() on the DummyCache backend.
This also fixes a possible data eviction race condition between
setting and getting a key. Another thread could remove the key
before get_and_set() accesses it again. In this case, now the
default value will be returned instead of None.

Backport of 8e838d9c86 from master
2015-12-04 12:28:34 -05:00
Josh Soref 8897f4b0df [1.9.x] Fixed many spelling mistakes in code, comments, and docs.
Backport of 93452a70e8 from master
2015-12-03 12:49:03 -05:00
Gagaro 08e1c79f7a [1.9.x] Fixed #25812 -- Restored the ability to use custom formats with the date template filter.
Backport of 34d88944f4 from master
2015-11-28 08:44:41 -05:00
Aymeric Augustin 8dc11dc592 [1.9.x] Fixed #25302 (again) -- Ignored scheme when checking for bad referers.
The check introduced in 4ce433e was too strict in real life. The poorly
implemented bots this patch attempted to ignore are sloppy when it comes
to http vs. https.

Backport of 11f10b7 from master
2015-11-27 08:12:49 +01:00
Simon Charette b4a1d545db [1.9.x] Fixed #25807 -- Instructed the migration writer about lazy objects.
Thanks to Trac alias mrgaolei for the report, Baptiste for the confirmation
and Tim for the review.

Backport of cc2ca9c550 from master
2015-11-26 11:21:35 -05:00
Attila Tovt e4bd6923bd [1.9.x] Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.
Backport of 88fc9e2826 from master
2015-11-25 16:53:23 -05:00
Tim Graham 5cea4c979f [1.9.x] Removed explicit User ids in tests.
Backport of 9350616211 from master
2015-11-25 13:27:15 -05:00
Jacek Bzdak 023bf66bff [1.9.x] Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.
Backport of 2cb50f935a from master
2015-11-25 13:15:35 -05:00
Tim Graham 5657000bfe [1.9.x] Refs #25438 -- Fixed two geoapp test failures on Oracle. 2015-11-25 08:13:15 -05:00
Florian Apolloner 3ebbda0aef [1.9.x] Fixed a settings leak possibility in the date template filter.
This is a security fix.
2015-11-24 12:04:55 -05:00
George Marshall 11d54e8f0d [1.9.x] Fixed #25767 -- Fixed data truncation possibility with Positive(Small)IntegerField on MySQL.
Backport of 710e11d076 from master
2015-11-24 11:10:19 -05:00
Tim Graham 8edf8db52f [1.9.x] Refs #25786 -- Added tests/release notes for set_FOO_order() crash with order_with_respect_to referencing OneToOneField pk.
Forwardport of 6d9f061b07 from stable/1.8.x
The issue was fixed by 7bec480fe2.
2015-11-23 12:08:29 -05:00
Simon Charette eb7a329fb6 [1.9.x] Fixed #25685 -- Fixed a duplicate query regression on deletion of proxied models.
Thanks to Trac alias ppetrid for the report and Tim for the review.

Conflicts:
	tests/delete/tests.py

Forward port of 7c3ef19978 from stable/1.8.x
2015-11-22 23:12:31 -05:00
Adam Wester c598dfa84a [1.9.x] Fixed #25781 -- Simplified admin_views tests with client.force_login()
Backport of 550107ff75 from master
2015-11-21 17:22:10 -05:00
Tim Graham 8727dc8e95 [1.9.x] Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
Backport of 54e2e688e1 from master
2015-11-21 11:30:18 -05:00
Jani Tiainen ad0056567b [1.9.x] Fixed #25438 -- Fixed assorted Oracle GIS test failures.
Backport of 58379d7e95 from master
2015-11-19 09:08:14 -05:00
Simon Charette ef78aec222 [1.9.x] Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.
Backport of 1c5f4e86bc 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 d95b22bd56 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 64240263f2 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 2eefbca1a4 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 406de4c243 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 c550beb0cc 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 b1b14587ae 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 263b3d2ba1 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 2514e044a7 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 cc8c02fa0f 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 4cd5d846d4 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 d3e3703a15 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 4608573788 from master
2015-11-10 12:12:45 -05:00