Alberto Avila
16a52cff32
[1.9.x] Refs #26071 -- Added test for __in lookup in a Case expression.
...
Forwardport of 5b3c66d8b64add684489f5010e43de73e7acdd04 from stable/1.8.x
2016-01-13 08:53:01 -05:00
pp
1cbc556bce
[1.9.x] Added missing period to "etc.".
...
Backport of b34ff66e5bae3760273255fa5b2525eb21a5eb63 from master
2016-01-11 18:05:56 -05:00
Simon Charette
27ef6403c8
[1.9.x] Fixed #25858 -- Bound abstract model application relative relationships.
...
Thanks to Karl Hobley for the report and Markus, Shai, Aymeric for their input
and Tim for the review.
Backport of bc7d201bdbaeac14a49f51a9ef292d6312b4c45e from master
2016-01-11 14:08:50 -05:00
Alexander Gaevsky
cb96d0c92a
[1.9.x] Added a test for adding a UUID pk object using the "Add related" admin popup.
...
Follow up to refs #25997 but this case wasn't broken.
Backport of 5052f79df45d843d1e44dcc47152ed503220098f from master
2016-01-08 18:54:40 -05:00
Tim Graham
3d324b9614
[1.9.x] Fixed #26034 -- Fixed incorrect index handling on PostgreSQL on Char/TextField with unique=True and db_index=True.
...
Thanks Simon Charette for review.
Backport of 56aaae58a746eb39d5e92ba60f59f4c750a8e1a8 from master
2016-01-08 14:20:53 -05:00
Tim Graham
20c8cc2bf5
[1.9.x] Added a helper function in schema tests.
...
Backport of 54d3ba84066301b9cdbbd657620c0f1e5c2422c0 from master
2016-01-08 14:16:22 -05:00
Alexander Gaevsky
a839d71d85
[1.9.x] Fixed #25997 -- Removed redundant escaping in admin's edit related model popup.
2016-01-08 11:06:56 -05:00
Claude Paroz
fe6d5689f2
[1.9.x] Fixed #26046 -- Fixed a crash with translations and Django-unknown language code
...
Thanks Jens Lundstrom for the report and Tim Graham for the review.
Backport of 632a9f21bc from master.
2016-01-06 20:33:26 +01:00
Scott Pashley
a7b69c8657
[1.9.x] Fixed #26035 -- Prevented user-tools from appearing on admin logout page.
...
Backport of 7cc2efc2d6916c05a0a5cb0c0e67f5405d8f6a03 from master
2016-01-06 13:52:25 -05:00
Tim Graham
2b17ac2469
[1.9.x] Skipped a dateformat test on Windows as needed.
...
Refs 1014ba026e879e56e0f265a8d9f54e6f39843348
Backport of 2765adc8dcbaa41662af9000c4de2820418bf0a2 from master
2016-01-05 13:12:09 -05:00
Denis Cornehl
ee2835e69c
[1.9.x] Fixed #26024 -- Fixed regression in ConditionalGetMiddleware ETag support.
...
Backport of 186b6c61bfe85afa4d6bf213d04a28dd2853fed2 from master
2016-01-05 09:41:13 -05:00
Tim Graham
775291d4c7
[1.9.x] Fixed #26009 -- Fixed contenttypes_tests isolation.
...
Backport of 2c6c873e3fca6c0c54c2335e131f7742fcf2cf26 from master
2016-01-04 11:48:50 -05:00
varunnaganathan
5770c2382a
[1.9.x] Fixed #25316 -- Fixed a crash with order_by() and values() after annotate().
...
Backport of 3eba9638ee69138c73efb1d1c1d1b806ddafc6cf from master
2016-01-02 08:19:41 -05:00
Attila Tovt
151027beab
[1.9.x] Fixed #26008 -- Added parallel argument to paired_tests and bisect_tests
...
Backport of 0db6367fe2aa6ab3fd152eacf172d57db45c1ffb from master
2016-01-02 05:19:03 -05:00
Tim Graham
5855bee1d1
[1.9.x] Removed British/Austrialian word: whilist.
...
Backport of 98839e906632dfe77c6f6906d61d62868a0541dc from master
2015-12-31 14:31:59 -05:00
Tim Graham
313d54bd3c
[1.9.x] Made cosmetic cleanups in middleware tests.
...
Backport of 89616f0c790376867ba31ada27554f40bfeb228e from master
2015-12-31 10:30:12 -05:00
Anssi Kääriäinen
99569b22d9
[1.9.x] Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.
...
Django's test suite often tries to load fixture files from apps that have
no fixtures at all. This creates a lot of unnecessary disabling and
enabling of constraints which can be expensive on some database.
To speed this up, loaddata now first checks if any fixture file matches.
If no fixture file is matched, then the command exits before disabling
and enabling of constraints is done.
The main benefit of this change is seen on MSSQL, where tests on
Django 1.8 run hours faster.
Backport of ee9f4686b19e2b4a68f5cb4f9d61dc045c1d4c63 from master
2015-12-31 09:05:20 -05:00
Chris Cogdon
8202ce45a5
[1.9.x] Fixed #26018 -- Prevented unecessary get_form() call in FormMixin.get_context_data().
...
Changed "dict.setdefault" to "if x in dict" pattern so that get_form() would not
be called unnecessarily, specifically in the case where FormMixin.form_invalid()
calls get_context_data() with the current form.
Backport of e429c5186ceed81c4627165518e0c70c58e69595 from master
2015-12-30 17:30:37 -05:00
Chris Cogdon
4d9b98616f
[1.9.x] Fixed #26006 -- Fixed incorrect object reference in SingleObjectMixin.get_context_object_name().
...
Backport of 4b2dcfe04f5d9938e40c569ffdd169f3a712145d from master
2015-12-30 09:58:05 -05:00
Alexander Gaevsky
312e488a21
[1.9.x] Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
...
Backport of 69208a5a1c55d42ca0eaffa900be643d9f801089 from master
2015-12-29 19:37:29 -05:00
knbk
5f3c5e40b2
[1.9.x] Fixed typo in test name.
...
Backport of 300de968d680eea10daa00132f60b7db47abfe1d from master
2015-12-29 12:48:53 -05:00
Tim Graham
2939ed4a18
[1.9.x] Fixed #23285 -- Fixed non-deterministic admin_views test.
...
This test sometimes fail because the checked integers can appear in the
output as memory addresses due to #24316 .
2015-12-28 17:49:45 -05:00
Tim Graham
15af2e806b
[1.9.x] Removed an unused import.
2015-12-28 17:46:33 -05:00
Varun Sharma
dc1ef0ff2e
[1.9.x] Fixed #25984 -- Corrected RuntimeError message in ModelBase.__new__().
...
Backport of 692d05589061a593d4bfbdb2895eaef0386eca34 from master
2015-12-24 16:45:38 -05:00
Luis San Pablo
4f2eb5fc5d
[1.9.x] Fixed #25981 -- Added need to update migrations to on_delete deprecation warning.
...
Backport of a856555df2a1b4ddad8bf21243de0bcbcc12fb20 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 8b6974a6857bdc48ad50bf21527b840c27648891 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 5081adcb9004f2c726dcfd054f7f16c5fd39d391 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 edf3b88f1ad8f6e900fb3273cc8a573d3d77ce16 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 f18b08748abaecb171fdcbcdfdcd7e4d95d931d1 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 fa9ce4e9a691e4f8c8b093784bac752e488dc60b 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 c4e372aaf467ae41315cfe56a718a80469fc5318 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 69b69f6d6085d80ccf36a3e999e9e5b98d580786 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 8035cee92293f3319919c8248c7787ba43c05917 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 10427646b887586bf89dacb3b5208b3ad2d17308 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 8ab58b80529c5206654c1042a4ddcf2da364f8ec 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 3a36c8079544c83dcdea4e52181efcd2d1e86b9c 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 6be9589eb34f79914666c9d9e1e15bdb7fc44df2 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 5bc881541caafbac6911fb26d9718b8ad6d45b2a 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 542b7f6c50df18f2aa201cf1de81577c1bee643c 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 59b57e672c2f5a685804cce253d2c5314c45c5fa 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 e171a83b1516a3a2a393a5300527af1aab21c213 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 8e838d9c869083597dc9e161ae2fe37acaa90de9 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 93452a70e8a62c7408eeded444f5088d4a26212d 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 34d88944f46d3e2734488fd0ca3c2c24c15a0264 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 cc2ca9c550fbf8fca8684b373a3c8e3618eea08e 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 88fc9e2826044110b7b22577a227f122fe9c1fb5 from master
2015-11-25 16:53:23 -05:00