Compare commits

...

1125 Commits

Author SHA1 Message Date
Tim Graham
6a0dc2176f [1.8.x] Added CVE-2018-7536,7 to the security release archive.
Backport of 5bbbdd26d1ea4f3bb164ad64b0d0d458d8bfdd02 from master
2018-03-06 13:10:07 -05:00
Tim Graham
1bdd9e5f5d [1.8.x] Added CVE-2018-6188 to the security release archive.
Backport of 66119ed64233c3abe586606a9e81a75edc2a6a92 from master
2018-03-06 13:09:57 -05:00
Tim Graham
baa1d60eb4 [1.8.x] Post-release version bump. 2018-03-06 09:37:53 -05:00
Tim Graham
c686dd8e6b [1.8.x] Bumped version for 1.8.19 release. 2018-03-06 09:17:43 -05:00
Tim Graham
d17974a287 [1.8.x] Fixed CVE-2018-7537 -- Fixed catastrophic backtracking in django.utils.text.Truncator.
Thanks James Davis for suggesting the fix.
2018-03-01 11:58:41 -05:00
Tim Graham
1ca63a66ef [1.8.x] Fixed CVE-2018-7536 -- Fixed catastrophic backtracking in urlize and urlizetrunc template filters.
Thanks Florian Apolloner for assisting with the patch.
2018-03-01 11:58:41 -05:00
Tim Graham
10f11f2221 [1.8.x] Added stub release notes for security release. 2018-03-01 11:58:41 -05:00
Tim Graham
1bbde54176 [1.8.x] Switched test requirement to new psycopg2-binary package.
Backport of d4373b6da4b420fe9211438addeedb396a3821be from master
2018-03-01 11:47:29 -05:00
Tim Graham
d92f899cb5 [1.8.x] Fixed GeoIP test failure with the latest data. 2018-01-08 10:00:21 -05:00
Sergey Fedoseev
e0b3681838 [1.8.x] Fixed typo in docs/topics/testing/advanced.txt.
Backport of 3922f02dc6b10a3268a710a2837027d3999957a3 from master
2017-12-04 12:03:03 +01:00
Tim Graham
97dfc30f5b [1.8.x] Fixed #28802 -- Fixed typo in docs/topics/auth/default.txt.
Backport of d392fc293c9439c19451e152f9560f24d1659563 from master
2017-11-16 10:39:59 -05:00
Tim Graham
e3cf8d2e94 [1.8.x] Fixed #28561 -- Removed inaccurate docs about QuerySet.order_by() and joins.
As of ccbba98131ace3beb43790c65e8f4eee94e9631c, both examples don't use
a join.

Backport of 44a6c27fd461e1d2f37388c26c629f8f170e8722 from master
2017-09-06 19:33:36 -04:00
Tim Graham
5e5c056e0e [1.8.x] Added 2017-12794 to the security release archive.
Backport of 79ae5811c7b06b6462f9411b6665241a4e98bedb from master
2017-09-05 12:33:47 -04:00
Berker Peksag
16dfaa5f94 [1.8.x] Removed redundant backticks in docs/releases/1.8.txt
Backport of 8d095c6378666e6d5f6cabc9e485c9db2618ff88 from master.
2017-08-21 12:15:29 +02:00
Mariusz Felisiak
31ddf51b52 [1.8.x] Fixed gis_tests.geoapp test with incorrect geodetic coordinates.
The latitude coordinates exceed -90, 90 bounds and caused a test failure
on Oracle 12.2.

Thanks Michał Wierzbowski for help preparing the patch.

Backport of 037d6540ecb7a60dca99162f6adedb2d879fa3ff from master
2017-05-30 10:18:20 -04:00
Tim Graham
8781713fd7 [1.8.x] Fixed docs build with Sphinx 1.6.
Backport of f370bfb10878918eae8db9985e0856949fa65d3a from master
2017-05-24 12:15:07 -04:00
Tim Graham
7dc480e4f7 [1.8.x] Removed a docs workaround for an old Sphinx version.
Backport of c315f9602418d2fcfe194b1ef2d0d7c325cac151 from master
2017-05-24 11:53:15 -04:00
Tim Graham
8aee493bd4 [1.8.x] Corrected removal of deprecated sphinx.util.compat.Directive.
Follow up to d2e39b20a9b1407f7b40598bd4caf234d8478af2
2017-05-24 11:08:38 -04:00
Tim Graham
d2e39b20a9 [1.8.x] Removed usage of deprecated sphinx.util.compat.Directive.
Backport of cb16458c4f91fe43b898b55b04fb177e914ac3af from master
2017-05-24 10:55:06 -04:00
Tim Graham
0b9f366c60 [1.8.x] Added CVE-2017-7233,4 to the security release archive.
Backport of b749c980a066a15b58b236656e57b66073a35a52 from master
2017-04-04 21:53:50 -04:00
Tim Graham
ba046f9994 [1.8.x] Post-release version bump. 2017-04-04 12:19:30 -04:00
Tim Graham
2d4bc5a60a [1.8.x] Bumped version for 1.8.18 release. 2017-04-04 10:03:09 -04:00
Tim Graham
8339277518 [1.8.x] Fixed #27912, CVE-2017-7233 -- Fixed is_safe_url() with numeric URLs.
This is a security fix.
2017-03-28 12:57:34 -04:00
Tim Graham
4a6b945dff [1.8.x] Fixed CVE-2017-7234 -- Fixed open redirect vulnerability in views.static.serve().
This is a security fix.
2017-03-28 12:57:34 -04:00
Tim Graham
081c263dff [1.8.x] Added stub release notes for security release. 2017-03-28 12:57:33 -04:00
Tim Graham
87851581a0 [1.8.x] Pinned test requirement to numpy < 1.12 for Python 3.3 compatibility. 2017-03-28 12:56:01 -04:00
Mariusz Felisiak
998bc0ced2 [1.8.x] Refs #27924 -- Doc'd that cx_Oracle < 5.3 is required.
Thanks Tim Graham for the review.

Backport of 46d602dcea624bef3fb6e1dbf71378d837c0957b from stable/1.10.x
2017-03-11 22:17:05 +01:00
Tim Graham
4b5aec3b0b [1.8.x] Fixed a backends test with psycopg2 2.7.
Backport of 49a63d08d3b3e2ac32e391d1413a4ac99429e4af from master
2017-03-01 13:22:53 -05:00
Tim Graham
299529dca6 [1.8.x] Fixed GeoIP test failure with the latest data.
Backport of da2e92d25ea32a25679d99525365ac7ac8e297ee from stable/1.11.x
2017-02-14 09:48:26 -05:00
Tim Graham
b248f33130 [1.8.x] Removed deprecated html_translator_class sphinx config option.
Backport of bacdfbf3d1eb23ff8e8110681728a5b467443446 and
e5d3f98abcdc20d64d99609bd0aa82331835b439 from master
2017-01-23 10:24:45 -05:00
Tim Graham
0311b7e637 [1.8.x] Declared Sphinx extensions safe for parallel reading.
Backport of 03306a187ec3bb5e2592728a900d4a41185f9e30 from master
2017-01-23 10:24:17 -05:00
Tim Graham
c9ba3450bd [1.8.x] Fixed #27616 -- Fixed incorrect vary_on_headers() example.
Backport of 5e239ae907291d07a3fcf9329f83c27fa6d72981 from master
2016-12-20 08:30:54 -05:00
Tim Graham
01b3dc2232 [1.8.x] Reverted "Fixed #27594 -- Fixed select_related() with reverse self-referential OneToOneField."
This reverts commit 4a9f9cc521f09c60f56024eb6688e30ab86b998f. It was
accidentally pushed to this branch.
2016-12-14 07:53:45 -05:00
Daniel Hillier
4a9f9cc521 Fixed #27594 -- Fixed select_related() with reverse self-referential OneToOneField.
Fix definition of `klass_info['from_parent']`. The relationship between
two models shouldn't be considered as being from a parent class if the
model classes are the same.

Thanks Tim for the review.
2016-12-14 07:38:09 -05:00
Tim Graham
fa596f82a6 [1.8.x] Post-release version bump. 2016-12-01 18:05:03 -05:00
Tim Graham
d3d12fc11d [1.8.x] Bumped version for 1.8.17 release. 2016-12-01 17:20:59 -05:00
Tim Graham
b2fff69aa6 [1.8.x] Added release date for 1.8.17.
Backport of 9ea9686532336caefcd5fedb76ad9a68a512d243 from master
2016-12-01 17:16:55 -05:00
Tim Graham
9b6b561d4a [1.8.x] Ignored flake8's newly added E305, E741, E743. 2016-11-14 18:34:36 -05:00
Mariusz Felisiak
32f50999cd [1.8.x] Fixed #27420 -- Quoted the Oracle test user password in queries.
Backport of c4b04e1598c4325454c808183dce17b284ed9e28 from master
2016-11-08 16:45:12 -05:00
Tim Graham
90c61538ba [1.8.x] Added CVE-2016-9013,14 to the security release archive.
Backport of b8ae2c16cfc4bf88c1720eafd8e35438181a7413 from master
2016-11-01 10:48:58 -04:00
Tim Graham
dd9dd58f41 [1.8.x] Post-release version bump. 2016-11-01 10:23:07 -04:00
Tim Graham
aa10ba0961 [1.8.x] Bumped version for 1.8.16 release. 2016-11-01 09:42:47 -04:00
Tim Graham
c401ae9a7d [1.8.x] Fixed CVE-2016-9014 -- Validated Host header when DEBUG=True.
This is a security fix.
2016-10-25 15:27:45 -04:00
Marti Raudsepp
70f9995296 [1.8.x] Fixed CVE-2016-9013 -- Generated a random database user password when running tests on Oracle.
This is a security fix.
2016-10-25 14:24:11 -04:00
Tim Graham
33bf6220e2 [1.8.x] Added stub release notes for 1.8.16. 2016-10-25 13:56:26 -04:00
Tim Graham
aba8f2b501 [1.8.x] Fixed #27342 -- Corrected QuerySet.update_or_create() example.
Backport of 51b83d9e5113ea5b81d04f4d117bd5acd3c1b822 from master
2016-10-13 11:03:38 -04:00
Tim Graham
1c4334f793 [1.8.x] Fixed nonexistent tmc.edu domain in GeoIP test.
Backport of e1f6eba033abea25cd6b0577bd66c655ec453325 from master
2016-10-11 19:44:09 -04:00
Tim Graham
3141b79d26 [1.8.x] Fixed #27307 -- Added missing url names in sitemaps docs.
Backport of fe1aee6b98d2a94ecc983463938135d192ef9afc from master
2016-10-03 16:05:56 -04:00
Alasdair Nicol
6e24eeef60 [1.8.x] Fixed 27283 -- Fixed typo in 1.8 release notes.
Backport of 32031718320e1b4d708b15d8c67738e4c77c9bc7 from master
2016-09-28 06:51:42 -04:00
Tim Graham
d5430a5ff9 [1.8.x] Added CVE-2016-7401 to the security release archive.
Backport of 6fe846a8f08dc959003f298b5407e321c6fe3735 from master
2016-09-26 18:30:31 -04:00
Tim Graham
47f5d799b2 [1.8.x] Added a CVE role for Sphinx.
Backport of a46742e738b91f79dd7b2e6ecba6dd1604e14d05 from master
2016-09-26 18:30:16 -04:00
Tim Graham
34da092a19 [1.8.x] Post-release version bump. 2016-09-26 14:24:25 -04:00
Tim Graham
25e416ca0f [1.8.x] Bumped version for 1.8.15 release. 2016-09-26 13:56:44 -04:00
Collin Anderson
6118ab7d06 [1.8.x] Fixed CVE-2016-7401 -- Fixed CSRF protection bypass on a site with Google Analytics.
This is a security fix.

Backport of "refs #26158 -- rewrote http.parse_cookie() to better match
browsers." 93a135d111c2569d88d65a3f4ad9e6d9ad291452 from master
2016-09-14 13:42:24 -04:00
Tim Graham
717aa88439 [1.8.x] Fixed #26807 -- Documented how to replicate SubfieldBase's assignment behavior.
Backport of 518eaf1fa2d86dc1b0ba7adba22b30bcc8f3a497 from master
2016-08-18 21:09:12 -04:00
Tim Graham
fdd1d247c4 [1.8.x] Fixed a GeoIP test failure with the latest data.
Backport of 4a696bbe13383b14b2762cc5accd45849e9dcfba from master
2016-08-03 11:19:21 -04:00
Tim Graham
33939f0183 [1.8.x] Fixed a typo in tests/middleware/test_security.py
Backport of 0850236a8c3647bc3c239bd34afae0488abe5c60 from master
2016-07-28 22:01:22 -04:00
Naved Khan
7665a52161 [1.8.x] Fixed #26941 -- Corrected uwsgi "env = LANG=…" configuration in docs.
Backport of 9a5a789da2b53a9c19ea47130507ce26839eb008 from master
2016-07-25 07:01:32 -04:00
Raphaël Hertzog
6cf35c666c [1.8.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.
Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master
2016-07-21 13:01:50 -04:00
Tim Graham
9f8ef7724d [1.8.x] Fixed a GeoIP test failure with the latest data.
Backport of 081fdaf110386db940d834ba51d93e23aa293fcd from master
2016-07-19 09:28:53 -04:00
Tim Graham
2deed2ea08 [1.8.x] Added CVE-2016-6186 to the security release archive.
Backport of bc53af13cbf09b0cbac945426c2d51d0ca52fff3 from master
2016-07-18 15:20:55 -04:00
Tim Graham
128bbf2986 [1.8.x] Post-release version bump. 2016-07-18 14:59:55 -04:00
Tim Graham
9fbdc48c49 [1.8.x] Bumped version for 1.8.14 release. 2016-07-18 13:45:11 -04:00
Tim Graham
f68e5a9916 [1.8.x] Fixed XSS in admin's add/change related popup.
This is a security fix.
2016-07-18 13:45:11 -04:00
Marissa Zhou
358ae4a687 [1.8.x] Fixed #24796 -- Moved SecurityMiddleware in MIDDLEWARE_CLASSES docs.
Partial backport of 8b1f39a727be91aab40bdb37235718ed63ae1d50 from master
2016-07-18 07:57:00 -04:00
Jon Dufresne
8edfdddbc8 [1.8.x] Fixed #26889 -- Fixed missing PostgreSQL index in SchemaEditor.add_field().
Backport of 2e4cfcd2b9a0984ad6c4087a5deebbf33413835c from master
2016-07-13 22:15:43 -04:00
Baptiste Mispelon
3e562cf7a2 [1.8.x] Fixed numpy deprecation warning silencing in template_tests.
Backport of 418658f453bed7fe7949dda26651aab370003e6a from master
2016-07-09 10:24:35 -04:00
Romain Garrigues
2a49d8e9b2 [1.8.x] Fixed #25461 -- Corrected meta API code examples to account for MTI.
In the case of multiple-table inheritance models, get_all_related_objects() and
get_all_related_objects_with_model() don't return the auto-created
OneToOneField, but the new examples didn't account for this.

Backport of 8be84e2ac42b2556fd6fa07794b3708b143ef341 from master
2016-07-06 09:28:58 -04:00
Taylor Edmiston
787675789c [1.8.x] Fixed typo in docs/topics/class-based-views/generic-display.txt
Backport of 43d0345fe11624d6b4fd960139ff653451b4f147 from master
2016-07-06 08:49:17 -04:00
Samir Shah
5079cd597c [1.8.x] Corrected firstof template tag's docstring.
Since Django 1.8, firstof escapes its output.

Backport of fff5dbe59ca629c295480693f045f03537858eee from master
2016-06-21 08:12:37 -04:00
Krzysztof Jurewicz
be5dfde7c2 [1.8.x] Fixed #26774 -- Corrected value of default_zoom in GeoModelAdmin doc
Backport of 6dd4d2709bfe427c05842c0269860ef95a0b4f00 from master
2016-06-17 14:03:52 +02:00
Tim Graham
4da3684f24 [1.8.x] Fixed flake8 2.6 warnings.
Backport of ea34426ae789d31b036f58c8fd59ce299649e91e from master
2016-06-16 10:37:33 -04:00
Berker Peksag
ba29dfb191 [1.8.x] Fixed #21588 -- Corrected handler initialization in "modifying upload handlers" example.
Backport of 8f50ff5b15a742f345dade0848a3fbbf2aff629d from master
2016-06-09 12:52:44 -04:00
Tim Graham
0f12924eb5 [1.8.x] Updated release notes links to prevent warnings with Sphinx 1.4.2.
Backport of 149ace94dfc10504a0e69462c7737f5ce05340a4 from master
2016-06-02 11:50:26 -04:00
Tim Graham
8346d2b633 [1.8.x] Ignored new warnings when building the docs with Sphinx 1.4.
Backport of af3273757397fa88163174546f2b620d7b4837ed from master
2016-06-02 11:30:49 -04:00
Tim Graham
c95487e23d [1.8.x] Refs #26687 -- Made an i18n test not use a hardcoded path separator.
This reverts commit c0a1e1984e0028022c5ac0722ff4933317bcdbc2 as it doesn't
work on the stable/1.8.x branch and instead uses os.path.join() to fix the
original failure on Windows.
2016-06-01 10:39:27 -04:00
Ramiro Morales
c0a1e1984e [1.8.x] Fixed #26687 -- Made an i18n test not use a hardcoded path separator.
Fixed a failure on Windows.

Backport of e3877c53edb33271b0f31d20e60a924848692026 from master
2016-05-31 12:01:05 -04:00
Florian Apolloner
d4ad28dbdd [1.8.x] Fixed a typo in the docs.
Backport of 62e4f8ec435a4b600c8efb071201070a2443477e from master.
2016-05-31 16:57:31 +02:00
Berker Peksag
4295848868 [1.8.x] Fixed #26503 -- Removed an outdated example from session docs.
Backport of 698c8dfc2a5c5865a8bb163c1ae70b75d53e6415 from master
2016-05-31 07:21:23 -04:00
Sergey Fedoseev
17a7ca283f [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt
Backport of 26794f6657a9d201d47a0748a449a94ad5d7c66e from master
2016-05-27 10:31:57 -04:00
MariKiev
4f50139692 [1.8.x] Added imports to docs/topics/db/aggregation.txt example.
Backport of 30d110ef43d8a3c50ea8ec4e4fe49bd2bb859530 from master
2016-05-25 09:57:55 -04:00
Aleksey
141f6e5588 [1.8.x] Added missing quotes in openlayers.html template.
Backport of a247c1d78978e358543e306edb94f03bd9bf9413 from master
2016-05-25 09:14:03 -04:00
Tim Graham
72da26af41 [1.8.x] Updated GeoIP test for latest database.
Backport of a0a1c4fbde4fb652b151a409db46c8ac3829ed2b from master
2016-05-23 20:49:33 -04:00
Tim Graham
e06bbf8fc3 [1.8.x] Fixed #26636 -- Fixed typo in docs/ref/request-response.txt
Backport of 6d9c5d46e644a8ef93b0227fc710e09394a03992 from master
2016-05-18 21:39:58 -04:00
vytisb
163972eb61 [1.8.x] Fixed code example in docs/howto/custom-lookups.txt
Backport of b3acf35f13aae57eb3c8340dd5ff7e61482e2537 from master
2016-05-06 08:26:27 -04:00
Tim Graham
74a2bbf072 [1.8.x] Post-release version bump. 2016-05-02 18:52:54 -04:00
Tim Graham
4022b2c306 [1.8.x] Bumped version for 1.8.13 release. 2016-05-02 18:39:32 -04:00
Tim Graham
3b2b51712b [1.8.x] Added release date for 1.8.13. 2016-05-02 18:17:09 -04:00
Alasdair Nicol
0eb6617869 [1.8.x] Added tests for if tag's != operator.
Backport of 246020efc59de1a64b52fdda6a460904151dae36 from master
2016-04-29 12:33:32 -04:00
Joshua Phillips
052e1f17ca [1.8.x] Fixed #26557 -- Converted empty strings to None when saving GenericIPAddressField.
Backport of 4681d65048ca2553895e10c2c492997b0a78ffba from master
2016-04-29 10:17:00 -04:00
Tim Graham
7934695a0f [1.8.x] Refs #25136 -- Fixed nonexistent field reference in aggregation topic guide.
Thanks Ankush Thakur for the report and Simon for the review.

Backport of fe70f280d7ea4402f676696c4013c4a23d4e4990 from master
2016-04-27 15:26:14 -04:00
Jon Dufresne
f8b8bcea5d [1.8.x] Fixed incorrect rendered widget in forms example.
Backport of 38ddd4ab553fb6b311c62d15fca7d848f84d539a from master
2016-04-20 21:08:38 -04:00
Lukasz Wiecek
0a411b2224 [1.8.x] Fixed #26498 -- Fixed TimeField microseconds round-tripping on MySQL and SQLite.
Thanks adamchainz for the report and review.

Backport of d3c87a2425b30400c3e6ea76585a9a537b6d0386 from master
2016-04-18 09:49:31 -04:00
Tim Graham
a61b26a651 [1.8.x] Added stub release notes for 1.8.13.
Backport of ad3c72118fd79d27c9f958f41d354b59d883d403 from master
2016-04-13 13:22:08 -04:00
Mikkel Munch Mortensen
7c67508a80 [1.8.x] Fixed #26477 -- Fixed typo in docs/ref/contrib/contenttypes.txt
Backport of 4bb3ddbcc674601743c63311d7efbf0e1fd19742 from master
2016-04-07 13:53:58 -04:00
Tim Graham
b93fb3e757 [1.8.x] Post-release version bump. 2016-04-01 14:02:48 -04:00
Tim Graham
c168aeba17 [1.8.x] Bumped version for 1.8.12 release. 2016-04-01 13:49:13 -04:00
Tim Graham
539302ee9a [1.8.x] Added release date for 1.8.12.
Backport of 93539ba2f42fe56bacefd09a9e8f93b31565f746 from master
2016-04-01 13:30:53 -04:00
Simon Charette
5198b0abea [1.8.x] Fixed #26438 -- Fixed multiple .objects typos in the docs.
Thanks Pablo Oubiña for the report.

Backport of 64aba7a8aba06b8be52a1a099b44e1d3be4bdd26 from master
2016-03-31 18:34:03 -04:00
Tim Graham
100f28ed28 [1.8.x] Sorted single letter imports per the latest version of isort.
Backport of 1c8c0837c61a9e9eb2129df29f75be92e47e926c from master
2016-03-28 11:59:36 -04:00
Aymeric Augustin
ca051388de [1.8.x] Fixed #26408 -- Updated link to DEP 182.
Thanks kaifeldhoff for the report.

Backport of 7b1ce7f from master
2016-03-25 20:52:33 +01:00
Tim Graham
0496838e61 [1.8.x] Fixed #26387 -- Restored the functionality of the admin's raw_id_fields in list_editable.
Backport of acfaec3db5ba39de52f6e607e74343dccf72fba1 from master
2016-03-25 14:57:12 -04:00
Tim Shaffer
540b487cd6 [1.8.x] Fixed typo in docs/topics/db/aggregation.txt.
Backport of 8550566af6321fe111ac1fe6497720e6ac291824 from master
2016-03-25 13:38:38 -04:00
Tim Graham
a2970a0464 [1.8.x] Fixed #26392 -- Corrected login_required/permission_required stacking example.
Backport of c41737dc00e2c8d34046b9f856f23fcc0cb4a82c from master
2016-03-21 19:58:44 -04:00
Amine
08b0a08c25 [1.8.x] Fixed a broken link in docs/internals/contributing/writing-documentation.txt.
Backport of 8b5a4fa941ba6e308b5ebd831b7953440fc0ee9b from master
2016-03-19 16:19:56 -04:00
Tim Graham
56f5059239 [1.8.x] Fixed #26375 -- Used a more generic name in a reusable template example.
Backport of 1d0abeaf757518808aabe9c85a2beaaa340fbc43 from master
2016-03-18 11:38:47 -04:00
Andrew Abraham
5d931314e3 [1.8.x] Fixed DiscoverRunner failfast parameter default in docs.
Backport of f2d9caa625084b0b96d60153f6b26ba43a1ab835 from master
2016-03-15 18:35:08 -04:00
Adam Alton
5bd01773be [1.8.x] Removed unnecessary filter kwarg from .get() in a test.
Backport of 38086c83aca881aa72bc2eba1e6eadaa76529ed0 from master
2016-03-14 18:57:59 -04:00
Noenglish Professorbut
1a1a8235df [1.8.x] Fixed a few docstring typos.
Backport of f8d20da0479b88db5bb5a2a30fa769cbf6d0a5bf from master
2016-03-12 08:50:50 -05:00
Tim Graham
c7764ca3a0 [1.8.x] Fixed #26324 -- Fixed DurationField with fractional seconds on SQLite.
Backport of 4f0cd0fd162122da96978b357ac9fc9534529410 from master
2016-03-10 19:16:31 -05:00
Tim Osborn
ae4d932b1a [1.8.x] Fixed indenting in "Serving files in development" code example
Backport of 8fb3a2877bac1ecf0e5665389d60eab637d1622e from master
2016-03-09 14:57:50 +11:00
Tim Graham
4d1a1bce81 [1.8.x] Fixed a dead link in django/contrib/sitemaps/__init__.py.
Backport of 09e5409cb5b7ed427d4c751fbe2594b485794104 from master
2016-03-08 13:16:35 -05:00
John-Mark Bell
a5e9ae9ad5 [1.8.x] Fixed #26325 -- Made MultiPartParser ignore filenames that normalize to an empty string.
Backport of 4b129ac81f4fa38004950d0b307f81d1e9b44af8 from master
2016-03-07 13:22:38 -05:00
George Marshall
567658f193 [1.8.x] Fixed #26331 -- Fixed test function names with typos
Backport of 75614f6d4c1a3fe779a75eb3e787452cccd1d814 from master
2016-03-07 06:56:52 -05:00
Tim Graham
6d312f95f3 [1.8.x] Added stub release notes for 1.8.12.
Backport of c960af4adb87f8ce87f5698902b68e8332e448cb from master
2016-03-05 10:02:12 -05:00
Tim Graham
865bcbcb97 [1.8.x] Post-release version bump. 2016-03-05 09:42:51 -05:00
Tim Graham
a98e00f068 [1.8.x] Bumped version for 1.8.11 release. 2016-03-05 09:35:22 -05:00
Claude Paroz
beb392b85e [1.8.x] Added safety to URL decoding in is_safe_url() on Python 2
The errors='replace' parameter to force_text altered the URL before checking
it, which wasn't considered sane. Refs 24fc935218 and ada7a4aef.
Backport of 552f03869e from master.
2016-03-04 23:39:46 +01:00
Claude Paroz
28bed24f55 [1.8.x] Fixed #26308 -- Prevented crash with binary URLs in is_safe_url()
This fixes a regression introduced by c5544d28923.
Thanks John Eskew for the reporti and Tim Graham for the review.
Backport of ada7a4aef from master.
2016-03-04 21:16:51 +01:00
Tim Graham
f294b3833b [1.8.x] Added stub release notes for 1.8.11.
Backport of 2f0c785a4c2353a3035ba6022cec5e25fb9d569b from master
2016-03-04 09:48:11 -05:00
Tim Graham
8b891cf386 [1.8.x] Fixed #26321 -- Added missing "for_save" parameter in expressions example.
Thanks tomaszn for the patch.

Backport of de8a11ba18d5902c668d4db47c38c9c6bdf9c1da from master
2016-03-03 19:38:06 -05:00
Alasdair Nicol
e4be3c80a1 [1.8.x] Fixed #26309 -- Documented that login URL settings no longer support dotted paths.
Backport of 2404d209a5e8c4573927e14587735562b79e13ed from master
2016-03-03 07:49:06 -05:00
Dmitry Dygalo
6a9bb1447c [1.8.x] Fixed typo in 1.8.10 release date.
Backport of 5155c2b4587629c4bc77a11846e5b9d3ba5a43ef from master
2016-03-02 07:10:21 -05:00
Tim Graham
640c99e8b3 [1.8.x] Added CVE-2016-2512/2513 to security release archive.
Backport of 24fc9352183c449a8b11d1c7b442e70aa61a8800 from master
2016-03-01 12:36:20 -05:00
Tim Graham
8e8f14edac [1.8.x] Post-release version bump. 2016-03-01 12:22:54 -05:00
Tim Graham
ef08d8cf9e [1.8.x] Bumped version for 1.8.10 release. 2016-03-01 11:39:42 -05:00
Florian Apolloner
f4e6e02f77 [1.8.x] Fixed CVE-2016-2513 -- Fixed user enumeration timing attack during login.
This is a security fix.
2016-02-29 08:07:17 -05:00
Mark Striemer
382ab13731 [1.8.x] Fixed CVE-2016-2512 -- Prevented spoofing is_safe_url() with basic auth.
This is a security fix.
2016-02-29 08:07:17 -05:00
Tim Graham
922f228695 [1.8.x] Added stub release notes for security issues. 2016-02-29 08:07:17 -05:00
Simon Charette
4701c81df3 [1.8.x] Fixed #26286 -- Prevented content type managers from sharing their cache.
This should prevent managers methods from returning content type instances
registered to foreign apps now that these managers are also attached to models
created during migration phases.

Thanks Tim for the review.

Refs #23822.

Backport of 3938b3ccaa85f1c366909a4839696007726a09da from master
2016-02-26 16:24:28 -05:00
Tim Graham
3b0b1e071d [1.8.x] Fixed a function signature in docs/topics/auth/default.txt.
Backport of 441c537b66233ae57bf0023f02d8262474229e1a from master
2016-02-24 16:25:37 -05:00
Tim Graham
4b8bd72a9f [1.8.x] Removed docs of deprecated SimpleTestCase warnings behavior.
Removed in Django 1.7 (4f6be9a0c43050500af598527e1453d27c5c5b85).

Backport of 6637cd0ef2fd5f063df82000c18c64c246bb6e1b from master
2016-02-24 09:59:23 -05:00
Jon Dufresne
6c48edae76 [1.8.x] Fixed #26267 -- Fixed BoundField to reallow slices of subwidgets.
Backport of b41268135995cef46d40e550f9301fab20cf330d from master
2016-02-24 07:09:08 -05:00
Josh Soref
751e5fcaf7 [1.8.x] Fixed many spelling mistakes in code, comments, and docs.
Partial backport of 93452a70e8a62c7408eeded444f5088d4a26212d from master
2016-02-23 10:27:15 -05:00
Tim Graham
2d321d2393 [1.8.x] Fixed #26188 -- Documented how to wrap password hashers.
Backport of 5a541e2e6cb01e254f20c302093a24d7dc9af8ce from master
2016-02-23 09:34:04 -05:00
Tim Graham
061a7ff366 [1.8.x] Refs #26253 -- Added tests for deprecation shims in SimpleTemplateResponse.
Backport of 3fedfc452fa94f8a6c9a64289d00202313ceb564 from stable/1.9.x
2016-02-22 17:12:37 -05:00
Daniel Quinn
5127ab4e73 [1.8.x] Fixed import location of check_password() in docs.
Backport of de7edc005f06c47c1d39d5cb30762d424ee4dabf from master
2016-02-22 12:43:41 -05:00
Sergey Fedoseev
e127fbac7b [1.8.x] Fixed some code blocks indentation in GIS docs.
Backport of dbaa1a6b59b4f8f942e8378465aaeb943c3d9de5 from master
2016-02-19 08:35:57 -05:00
Juan José Conti
3c2282c301 [1.8.x] Used relative models imports in the GIS tutorial.
Backport of bb7042cda from master.
2016-02-19 08:30:28 +01:00
Tim Graham
0f667a580a [1.8.x] Fixed #26204 -- Reallowed dashes in top-level domains for URLValidator.
Thanks Shai Berger for the review.

Backport of b1afebf882db5296cd9dcea26ee66d5250922e53 from master
2016-02-18 19:56:36 -05:00
Tim Graham
33525bb120 [1.8.x] Fixed #26233 -- Fixed invalid reSt in models.Q docstring.
Backport of 70d3f81ca4ea7e1e1310e13ce0a633d7f920d45b from master
2016-02-18 08:46:53 -05:00
Jon Dufresne
2029105670 [1.8.x] Followed recommended ValidationError use in docs.
Backport of 0db7e61076116c2d93d61f98ef31690542359e48 from master
2016-02-17 09:10:09 -05:00
Claude Paroz
5bce665974 [1.8.x] Fixed #26215 -- Fixed RangeField/ArrayField serialization with None values
Also added tests for HStoreField.
Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and
the review.
Backport of 928c12eb1 from master.
2016-02-16 21:14:24 +01:00
Tim Graham
766fbcb1d3 [1.8.x] Fixed possible "RuntimeError: maximum recursion depth exceeded" building docs.
Backport of 6a71ac61bd8ebd57f036e076a4f7f29cf2d88c00 from master
2016-02-16 07:32:08 -05:00
Ryan Nowakowski
4aab1d4bb3 [1.8.x] Fixed #26221 -- Used find_packages() in reusable apps tutorial.
Otherwise the migrations package won't be included in the tarball.

Backport of 11af73eaeb4371ded68460c1591abd6aefa57a90 from master
2016-02-15 19:25:53 -05:00
Tim Graham
180d4cbfe6 [1.8.x] Fixed #26212 -- Made forms.FileField and translation.lazy_number() picklable.
Backport of b59f963ad2a49322725b20fac71661bd49643443 from master
2016-02-15 11:52:14 -05:00
Berker Peksag
927f43ea3a [1.8.x] Fixed #26126 -- Fixed transient failure of test_max_age_expiration
Backport of b17a9150a0c3a132e82b53755ede62a45f897875 from master
2016-02-15 09:27:03 -05:00
Camilo Nova
b9105e7dea [1.8.x] Added import in docs/topics/email.txt example.
Backport of a6f856df52d532d5537191eca237de6efdffe309 from master
2016-02-12 13:45:13 -05:00
Markus Holtermann
3af5643d82 [1.8.x] Fixed allow_migrate() signature in documentation
Backport of 228427ab1ab6aaafed4eacfb532f7ddb6cc1ed6c from master
2016-02-12 14:37:10 +11:00
Simon Charette
edff550392 [1.8.x] Fixed #26162 -- Checked query name clashes of hidden relationships.
Although reverse accessor clashes should be skipped query name can't be hidden.

Thanks to Ian Foote and Tim Graham for the review.

Backport of a325fb1f9b14b46288d0e1342407be4a6db2bdb1 from master
2016-02-08 10:42:31 -05:00
Tim Graham
2f0de9b0a1 [1.8.x] Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.
Backport of 97eb3356b2a7488c8d0ca0e47ef3e538852d44a2 from master
2016-02-08 07:45:10 -05:00
Tim Graham
b650623882 [1.8.x] Added stub release notes for 1.8.10.
Backport of d6337e65ed86ac0d2e55ebcbc710c42f87e0a3b6 from master
2016-02-06 09:25:02 -05:00
Carl Meyer
c247753083 [1.8.x] Fix typos in 1.8 release notes.
Backport of a0ce4c09ff516af52718885120c2231404515428 from master
2016-02-03 15:27:40 -05:00
Tim Graham
ea2d9f0d4a [1.8.x] Refs #26089 -- Removed obsolete docs about custom user model testing.
Backport of 1e9150443e5696d764ed81c97b53ef0365a5d854 from master
2016-02-02 08:55:37 -05:00
Ramon Moraes
8488fbb2dc Updated xhtml2pdf URL in docs. 2016-02-02 07:34:21 -05:00
Tim Graham
97f0e0ac24 [1.8.x] Added CVE-2016-2048 to the security archive.
Backport of ecd502cfdb57706dd0e84d9928934bcae6b1ef25 from master
2016-02-01 12:43:21 -05:00
Tim Graham
666c85e8a0 [1.8.x] Post-release version bump. 2016-02-01 12:26:39 -05:00
Tim Graham
c982190acf [1.8.x] Bumped version for 1.8.9 release. 2016-02-01 12:14:42 -05:00
Tim Graham
3a7c5f59ab [1.8.x] Added release date for 1.8.9. 2016-02-01 12:13:54 -05:00
Tim Graham
229666289d [1.8.x] Fixed #20415 -- Ensured srid isn't localized in OpenLayers JavaScript.
Backport of 19d1cb14519186902d7e27813bf2643fe3f7cfa3 from master
2016-01-28 18:02:36 -05:00
Tim Graham
15a80c3dfd [1.8.x] Fixed an admin_scripts test on Ubuntu 16.04/spatialite. 2016-01-28 18:00:38 -05:00
Tim Graham
99cd139a30 [1.8.x] Fixed #26147 -- Relaxed expected values in GIS tests to account for database/library differences.
Backport of 5aa53286758fbb1fb864a5efda38718a2ca96759 from master
2016-01-28 17:45:34 -05:00
Yoong Kang Lim
a0e0b37dae [1.8.x] Added a missing test method in tests/migrations/test_writer.py.
Backport of 5453aa66cfdf228f40dc1997d811ca986de405a3 from master
2016-01-28 10:39:03 -05:00
Yoong Kang Lim
c2dfc3616a [1.8.x] Fixed #26136 -- Removed URL reversing by dotted path from JavaScript catalog example.
Backport of 31817dd2eb69db54eb559716aae42fe55ada5fea from master
2016-01-27 09:07:07 -05:00
Ben Kraft
79c3950562 [1.8.x] Fixed #26122 -- Fixed copying a LazyObject
Shallow copying of `django.utils.functional.LazyObject` or its subclasses has
been broken in a couple of different ways in the past, most recently due to
35355a4.
2016-01-26 06:57:47 -05:00
Tim Graham
d162438c65 [1.8.x] Fixed Sphinx highlight warnings in docs.
Backport of 9c43d8252a926f72be5a279186b42848501819b8 from master
2016-01-25 12:10:21 -05:00
Tim Graham
7b6ab2885e [1.8.x] Refs #26034 -- Added another case fixed by this ticket to release notes.
Thanks Shai Berger for the report.

Backport of 497b5d6feee5b7947231bd0ae6edf833773b6cce from master
2016-01-25 08:37:36 -05:00
Tim Graham
bf9385e3aa [1.8.x] Added Django version trove classifier to reusable apps tutorial.
Backport of 2d36c7d515312e7a476041c96a29727ed47eb517 from master
2016-01-24 08:44:30 -05:00
Tim Graham
6919586bcd [1.8.x] Fixed #26116 -- Corrected schema's test_alter_implicit_id_to_explicit.
AUTOINCREMENT is dropped converting an AutoField to IntegerField
which isn't the point of this test. MySQL would warn or error about
this.

Backport of b49cc8664306f8b44e9e12ebb9e43791d508ec74 from master
2016-01-22 13:08:50 -05:00
Tim Graham
009c697312 [1.8.x] Fixed #26121 -- Updated MySQL storage engine example.
default_storage_engine was introduced in MySQL 5.5.3.
storage_engine was removed in MySQL 5.7.5.

Backport of 79d0a4fdb0d13ba6a843dace2b90ab44e856bd85 from master
2016-01-22 08:22:47 -05:00
Luke Plant
a034ced2ef [1.8.x] Changed action="." to action="" in tests and docs.
`action="."` strips query parameters from the URL which is not usually what
you want. Copy-paste coding of these examples could lead to difficult to
track down bugs or even data loss if the query parameter was meant to alter
the scope of a form's POST request.

Backport of 77974a684a2e874bccd8bd9e0939ddcb367a8ed2 from master
2016-01-21 14:00:23 -05:00
Alexander Gaevsky
8502e9f049 [1.8.x] Fixed #26060 -- Fixed crash with reverse OneToOneField in ModelAdmin.readonly_fields.
Backport of 9a33d3d76497d9e198de942ee1236c452231262f from master
2016-01-21 13:55:14 -05:00
Alberto Avila
5b3c66d8b6 [1.8.x] Fixed #26071 -- Fixed crash with __in lookup in a Case expression.
Partial backport of afe0bb7b13bb8dc4370f32225238012c873b0ee3 from master.
2016-01-13 08:38:07 -05:00
Jarek Glowacki
e625859f08 [1.8.x] Corrected a few typos in Signal.send() docstring.
Backport of c68ce18712f5896fa9ab95afd69d590212f3c398 from master
2016-01-12 08:28:00 -05:00
Matt Robenolt
6011d3a156 [1.8.x] Fixed a typo in BCryptPasswordHasher docstring
There is no BCryptSHA512PasswordHasher.

Backport of 8048411c97559afd4bca28fbeaabafc2df05bcae from master
2016-01-09 13:35:06 -05:00
Alexander Gaevsky
caeacd94dd [1.8.x] Refs #24980 -- Fixed incorrect timezone handling in admin calendar widget.
Backport of ea7542891a4e3638a695c58bd6f00658b7c85985 from master
2016-01-08 17:26:33 -05:00
Tim Graham
f8c3d38c2d [1.8.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:47:05 -05:00
Tim Graham
fe5d37f991 [1.8.x] Added a helper function in schema tests.
Backport of 54d3ba84066301b9cdbbd657620c0f1e5c2422c0 from master
2016-01-08 14:42:32 -05:00
Tim Graham
ae39a06603 [1.8.x] Fixed #26055 -- Removed an orphaned phrase in docs/howto/deployment/wsgi/modwsgi.txt.
Backport of db8f462494d603eba922818479a87f5ddfe1a13b from master
2016-01-08 09:39:29 -05:00
Alexander Gaevsky
40601e5797 [1.8.x] Fixed #24980 -- Fixed day determination in admin calendar widget.
Backport of 44930cc4667268c20493d7e97387db2a97d61a26 from master
2016-01-07 19:15:57 +03:00
Claude Paroz
61437dd0a0 [1.8.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:34:45 +01:00
Scott Pashley
7688089e0f [1.8.x] Fixed #26035 -- Prevented user-tools from appearing on admin logout page.
Backport of 7cc2efc2d6916c05a0a5cb0c0e67f5405d8f6a03 from master
2016-01-06 14:00:52 -05:00
Tim Graham
5c1de942ac [1.8.x] Added stub release notes for 1.8.9.
Backport of 1e57dccb31b1302c7292dfa7eac8d8aeeb76a7d0 from master
2016-01-05 13:19:50 -05:00
Tim Graham
df4fea644f [1.8.x] Skipped a dateformat test on Windows as needed.
Refs 1014ba026e879e56e0f265a8d9f54e6f39843348

Backport of 2765adc8dcbaa41662af9000c4de2820418bf0a2 from master
2016-01-05 13:12:27 -05:00
Tim Graham
4164a4e166 [1.8.x] Post-release version bump. 2016-01-02 09:11:57 -05:00
Tim Graham
a1f5bafac5 [1.8.8] Bumped version for 1.8.8 release. 2016-01-02 08:52:10 -05:00
Tim Graham
4fd5f06d1e [1.8.x] Added release date for 1.8.8 release.
Backport of 24c1713e2ec29214838be61cc6bf13b6bf380f4f from master
2016-01-02 08:37:08 -05:00
varunnaganathan
f6b4893a9f [1.8.x] Fixed #25316 -- Fixed a crash with order_by() and values() after annotate().
Backport of 3eba9638ee69138c73efb1d1c1d1b806ddafc6cf from master
2016-01-02 08:20:07 -05:00
Anssi Kääriäinen
1261c49690 [1.8.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:20:00 -05:00
Matthew Madurski
cef1bc87f9 [1.8.x] Fixed typo in BaseCache.delete_many() docstring.
Backport of 7df9aa3a33271706bf172eac77b5b0d02c971d77 from master
2015-12-29 20:50:36 -05:00
Alexander Gaevsky
83174866ac [1.8.x] Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
Backport of 69208a5a1c55d42ca0eaffa900be643d9f801089 from master
2015-12-29 19:56:23 -05:00
knbk
bd746ae341 [1.8.x] Fixed typo in test name.
Backport of 300de968d680eea10daa00132f60b7db47abfe1d from master
2015-12-29 12:48:58 -05:00
Tim Graham
11601ee826 [1.8.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.

Backport of 2939ed4a18864549a25807193ea5af490d632dc6 from stable/1.9.x
2015-12-28 18:35:23 -05:00
Markus Bertheau
b51086d573 [1.8.x] Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.
Backport of 4a438e400b7ce0ab9d0b6876196cbe8d620a4171 from master
2015-12-24 11:25:50 -05:00
Chris Lamb
91d46d2fb8 [1.8.x] Discouraged use of /tmp with predictable names.
The use of predictable filenames in /tmp often leads to symlink attacks
so remove the most obvious use of them in the docs.

Backport of 77b8d8cb6d6d6345f479c68c4892291c1492ba7e from master
2015-12-24 09:57:02 -05:00
Tim Graham
464128eb4e [1.8.x] Removed an extra header in docs/ref/templates/api.txt.
Backport of 91cd4d8e8c1e8593fc091abc11e05fa5d9514601 from master
2015-12-23 19:05:38 -05:00
Alasdair Nicol
e95c9c35d3 [1.8.x] Fixed #25854 -- Removed deprecated usage of template.render() with RequestContext in docs.
Backport of 32c7d93e5f0638c5a1ec8e2525c967be444fcef1 from master
2015-12-23 18:31:24 -05:00
Tim Graham
3f8b9056c0 [1.8.x] Fixed #25729 -- Fixed flaky admin_widgets selenium test: test_ForeignKey_using_to_field
Backport of 5081adcb9004f2c726dcfd054f7f16c5fd39d391 from master
2015-12-23 14:02:12 -05:00
Tim Graham
d156ae0612 [1.8.x] Fixed #25963 -- Clarified render_to_response() context_instance deprecation.
Backport of 36d0aa43036090685cebe6c9f757631cdadb1400 from stable/1.9.x
2015-12-22 13:11:43 -05:00
Tim Graham
8957f8c00d [1.8.x] Added missing import for previous commit. 2015-12-18 18:15:35 -05:00
Claude Paroz
67a62703cc [1.8.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:53:16 +01:00
Sergey Fedoseev
ad8cb985a9 [1.8.x] Fixed a typo in docs/ref/contrib/gis/geos.txt.
Backport of e09007076138d71d9605c4acd94acdf29cbc87e7 from master
2015-12-18 07:09:31 -05:00
Simon Charette
4b02b433b7 [1.8.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:55:05 -05:00
Bruno Alla
c0c2c7ecd6 [1.8.x] Fixed #25893 -- Corrected custom lookups example.
Backport of ffcdb0b471d0afc72b42b0a2b0c0c4fb45d7b6b1 from master
2015-12-11 08:45:14 -05:00
Dotan Agmon
f179d35f54 [1.8.x] Fixed incorrect examples in ArrayField docs.
Backport of a44dc200d0cbd651f66a2082aa9909ff8f51a659 from master
2015-12-10 17:51:46 -05:00
Federico Frenguelli
905e94a07e [1.8.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:29:00 -05:00
Shai Berger
02c049ab1a [1.8.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:21:28 +02:00
Tim Graham
4211f8c9d1 [1.8.x] Fixed #25711 -- Updated the project template's include() example.
Referencing URLs by dotted path is a stronger convention than
importing the URLs.

Backport of 179fbab7e05946b59ec9815d6e9b1901826ed610 from master
2015-12-09 11:47:26 -05:00
Amos Onn
0772bffd4a [1.8.x] Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().
Backport of 542b7f6c50df18f2aa201cf1de81577c1bee643c from master
2015-12-09 11:08:17 -05:00
Andrew Plummer
4eb9a1cf2a [1.8.x] Fixed typo in docs/ref/forms/validation.txt.
Backport of 1aa8bf9b43bbc214770389b9b8d084552040fa44 from master
2015-12-09 07:21:32 -05:00
Gavin Wahl
d34de856e5 [1.8.x] Fixed user_passes_test() signature in docs.
Backport of ec708803f70d51dda21845799de8c62d02611808 from master
2015-12-08 15:57:46 -05:00
Tim Graham
cdc354eb39 [1.8.x] Fixed #25895 -- Used a consistent style for UserAdmin overrides.
Thanks Justin Abrahms for the report.

Backport of 166e0490d39f619928ee9c5133cc5cab0ae5c1db from master
2015-12-08 14:42:39 -05:00
Tim Graham
975a451153 [1.8.x] Refs #25886 -- Improved language in Python compatibility section of the release notes.
Backport of 26c26e83081d68035d6411b1acc17ba033e1876d from master
2015-12-08 13:05:51 -05:00
Tim Graham
14e1e53a90 [1.8.x] Fixed #25881 -- Marked Python 3.2 in Django 1.8 as unsupported at the end of 2016.
Backport of e6bd688ef3b58ee522794dce77f64a81b53b3b9e from master
2015-12-08 12:48:07 -05:00
Sergey Fedoseev
e73406d165 [1.8.x] Refs #25846 -- Added stacklevel to SubfieldBase warning.
Backport of 64200c14e0072ba0ffef86da46b2ea82fd1e019a from stable/1.9.x
2015-12-02 19:33:01 -05:00
Tim Graham
c3e2e63ec8 [1.8.x] Added Python 3.5 trove classifier. 2015-12-01 19:07:19 -05:00
Tim Graham
dfd4bd5fc5 [1.8.x] Fixed typo docs/ref/models/relations.txt 2015-11-30 18:48:56 -05:00
Gagaro
9582ba51bd [1.8.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:51 -05:00
James Beith
85a021b9cb [1.8.x] Fixed a typo in the managers docs.
Backport of e03798a4ae6e0eca43c1b238dd96b3798aaeca81 from master
2015-11-27 13:54:19 -05:00
Tim Graham
6914a716cb [1.8.x] Refs #25274 -- Added missing argument to contrib.gis' inspectdb. 2015-11-25 18:44:28 -05:00
Tim Graham
15a18090c1 [1.8.x] Fixed man page by ensuring ".pot" doesn't render unescaped.
See https://github.com/sphinx-doc/sphinx/issues/2131

Backport of 0cfe589f9563f283cbffd03d95c7f9e8e63345b9 from master
2015-11-25 17:23:17 -05:00
Attila Tovt
3ec4e739dd [1.8.x] Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.
Backport of 88fc9e2826044110b7b22577a227f122fe9c1fb5 from master
2015-11-25 16:53:27 -05:00
Sergey Fedoseev
78627091f8 [1.8.x] Fixed #25649 -- Documented that all GEOSGeometry constructors take srid kwarg.
Backport of a3708fda3574a5a0d949000df1b03a54721cf029 from master
2015-11-25 16:30:50 -05:00
Jacek Bzdak
834ad41472 [1.8.x] Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.
Backport of 2cb50f935aa70e91dd6c2f253becd636a2eb6fb7 from master
2015-11-25 13:17:24 -05:00
Tim Graham
108038f2b4 [1.8.x] Added stub release notes for 1.8.8.
Backport of ec202eff84dc56b408f43187e357077521641362 from master
2015-11-25 10:20:13 -05:00
Tim Graham
2be1bdcfd0 [1.8.x] Backported the latest version of the security issue archive. 2015-11-24 14:05:09 -05:00
Tim Graham
843208990b [1.8.x] Post-release version bump. 2015-11-24 13:58:01 -05:00
Tim Graham
8dd33d4298 [1.8.x] Bumped version for 1.8.7 release. 2015-11-24 11:31:34 -05:00
Tim Graham
33de26c6ed [1.8.x] Added release dates for 1.8.7/1.7.11 releases. 2015-11-24 11:31:10 -05:00
Florian Apolloner
9f83fc2f66 [1.8.x] Fixed a settings leak possibility in the date template filter.
This is a security fix.
2015-11-24 11:31:10 -05:00
George Marshall
581b9e5047 [1.8.x] Fixed #25767 -- Fixed data truncation possibility with Positive(Small)IntegerField on MySQL.
Backport of 710e11d076b9e5ef3e3b486dfb70bb55b788691c from master
2015-11-24 11:10:23 -05:00
Tim Graham
acaf30ad17 [1.8.x] Documented that forms.Field.help_text isn't HTML-escaped.
Backport of a918f8b089a1d702c50c44742f433f3a546e0aa2 from master
2015-11-24 10:17:39 -05:00
Bulgantamir Gankhuyag
92d0d2cb1b [1.8.x] Clarified default value for DateField to emulate auto_now_add.
Backport of 8bce6fa637952342278c59d06520611e3ba80cbb from master
2015-11-24 08:40:14 -05:00
Sergey Fedoseev
954d63155f [1.8.x] Refs #25739 -- Lessened the prominence of geos.fromstr() in the docs.
Backport of 97e1d2433085e01696dc2fac8bfbb9c421c82b67 from master
2015-11-23 17:25:04 -05:00
Tim Graham
6d9f061b07 [1.8.x] Fixed #25786 -- Fixed set_FOO_order() crash with order_with_respect_to referencing OneToOneField pk.
Partial backport of 7bec480fe2ace94c8e7f0c88485442bfa74436b4 from master
2015-11-23 11:05:18 -05:00
Stephane Angel (Twidi)
8f724817f3 [1.8.x] Corrected doc'd differences between django-admin and manage.py.
Backport of 8091e8c5c61fb0a6bd15e92bea1f9fdfa21c047f from master
2015-11-23 07:51:33 -05:00
Simon Charette
7c3ef19978 [1.8.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.
2015-11-22 23:07:30 -05:00
Tim Graham
2179e5a2bc [1.8.x] Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
Backport of 54e2e688e1cfbdb37dfa5dd3b3ffdf2af12b4423 from master
2015-11-21 11:41:06 -05:00
areski
bc8bae0ba9 [1.8.x] Corrected GenericIPAddressField protocol parameter doc.
Backport of 1e7da99ea6a78c47d3b5d4e9ce82df1ee4024ada from master
2015-11-19 11:19:20 -05:00
Chris Lamb
b15eaa2963 [1.8.x] Corrected stacklevel in Engine deprecation warnings.
Otherwise we just see django.template.loader and not the "original"
callers.

Backport of ed9509156195e6952ec1a5de4f9360e5f028caa2 from stable/1.9.x
2015-11-19 11:11:21 -05:00
Tim Graham
95eca4f508 [1.8.x] Fixed #25549 -- Documented auth_user_password_change URL.
Backport of ad167502f36f2547718aee290d4d11bf7a26ff82 from master
2015-11-18 19:36:17 -05:00
Tim Graham
e7da99abd4 [1.8.x] Refs #25526 -- Documented some missing termcolors.
Backport of 5f7f3b46853c958789361a7defda8ca3c3c2be53 from master
2015-11-18 10:44:19 -05:00
Neal Todd
a16d4e249c [1.8.x] De-emphasized use of NullHandler in logging docs.
NullHandler removed in 1.9; unused since Django 1.5.

Backport of b3acdeee502e961065bfcdb7673d7cf91ab5b283 from master
2015-11-18 09:56:33 -05:00
Elena Oat
a9f1ea3275 [1.8.x] Fixed #25526 -- Documented how to output colored text in custom management commands.
Backport of d26207d56cab21e3767121d53ebaddbbfc78a4ce from master
2015-11-17 18:25:08 -05:00
Alex Morozov
b4aa38d106 [1.8.x] Fixed #25710 -- Clarified the docs about what INTERNAL_IPS does.
Backport of 5abed864ee1cd31a0b920768b4abe85b26b43a4d from master
2015-11-17 10:18:07 -05:00
Tim Graham
583d3c081a [1.8.x] Refs #23751 -- Added some unicode characters to the latex preamble.
Thanks Graham Wideman for the patch.

Backport of a80d70dd10f3c7d483579734e524c94c62832070 from master
2015-11-16 20:32:55 -05:00
Tim Graham
a3a27dec8f [1.8.x] Fixed #23751 -- Fixed code snippet formatting in docs PDF.
Thanks Graham Wideman for the patch.

Backport of e48a5b5a03181b3ada6183595eb6e1c599a9657a from master
2015-11-16 20:32:51 -05:00
Mikey Ariel
48abe9d9cd [1.8.x] Changed section title from "Model syntax" to "Introduction to models".
Backport of c9432c44fbcdb8c45cdc0b2bc1aeb1467126e48e from master
2015-11-16 09:54:30 -05:00
René Fleschenberg
058f604ac1 [1.8.x] Fixed #25531 -- Documented that admin_order_field supports lookups.
Backport of 2c727101113770d41e0907b333568bc2c25435e0 from master
2015-11-14 17:39:29 -05:00
Tim Graham
0c2532766b [1.8.x] Fixed typo in docs/ref/migration-operations.txt.
Backport of 931b946e29bb0dc6bb1ca02c7ca67b65770763dd from master
2015-11-14 17:20:37 -05:00
Simon Charette
5a6a5ce0d5 [1.8.x] Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.
Conflicts:
	tests/apps/tests.py
	tests/migrations/test_graph.py
	tests/queryset_pickle/tests.py
	tests/runtests.py

Backport of 1c5f4e86bc9c7bae5d5f3830d9cfbb0043297261 from master
2015-11-14 12:45:38 -05:00
Simon Charette
afe84c71eb [1.8.x] Refs #25745 -- Avoided multiple registration of the same model in schema tests.
Conflicts:
	tests/schema/tests.py

Backport of 64240263f22055cb539159e9359e64d5096f39d9 from master
2015-11-14 12:15:51 -05:00
Florian Demmer
da20004a61 [1.8.x] Fixed #17686, refs #17816 -- Added "Files" section to Unicode topic.
Thanks Fako Berkers for help with the patch.

Backport of 25b912abbe31fa440e702b5273c18cf74e2d6e0b from master
2015-11-14 12:02:37 -05:00
Tim Graham
8b99603120 [1.8.x] Fixed admin_filters test failures when run in reverse.
Backport of b1b14587aedbb4fd37a99b7bf5345abae279322d from master
2015-11-14 11:32:09 -05:00
Dmitry Dygalo
e9c9f2ed82 [1.8.x] Fixed #25666 -- Fixed the exact lookup of ArrayField.
Backport of 263b3d2ba132ea443193dc0b728741317742c8d3 from master
2015-11-14 11:24:21 -05:00
arniu
3b73a9c982 [1.8.x] Made doc icon's edges smooth.
Backport of b8f78823eefd37327bd7be557cca3663a212492d from master
2015-11-14 08:12:26 -05:00
Tom Christie
2f4a82e549 [1.8.x] Tweaked example text in docs/ref/templates/builtins.txt.
Backport of a32538279c085bdf67839dc834f05b37f8f38bb8 from master
2015-11-13 07:40:12 -05:00
Tim Graham
a517a3c531 [1.8.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:49 -05:00
Anderson Resende
2a4a9e316e [1.8.x] Fixed #25744 -- Corrected reference to User object in auth docs.
Backport of ce4914eab4688ace4b97d14a8c271887235ebb3f from master
2015-11-12 19:23:59 -05:00
Tim Graham
967335977b [1.8.x] Replaced "inbuilt" with more common "built-in".
Backport of a8f05f405f8b78e13d7c4c9ffd73d6182b6fc4d5 from master
2015-11-12 17:30:47 -05:00
Bryan Marty
16c1075d33 [1.8.x] Fixed #25169 -- Documented stacking of permission_required and login_required.
Backport of 9788625277b85596302bbf2c39cf829b7a766a4f from master
2015-11-12 14:27:22 -05:00
Tim Graham
10d18dec10 [1.8.x] Fixed #10045 -- Corrected docs about .annotate()/.filter() ordering.
Thanks Josh, Anssi, and Carl for reviews and advice.

Backport of 91a431f48c1fc5ecc9a837e8071a0062d31b490f from master
2015-11-12 13:22:17 -05:00
Matthew Somerville
2c96b3da6f [1.8.x] Refs #24937 -- Backported more commits to fix for serialization of Date(Time)RangeField.
Instead of using DjangoJSONEncoder, use base_field's value_to_string().

Note this means the serialization of e.g. IntegerRangeField now has
strings for lower and upper, so use to_python when they came back in
(same behaviour as ArrayField, hopefully, from where I also got the
set_attributes_from_name function).

Backport of 86d9b10dc33cc115fee2ecab40a569354ac55d15 and
8a842148b6deaab021526e2689279cf5e232945f from master
2015-11-12 09:22:44 -05:00
Matthew Somerville
3ded51bcf2 [1.8.x] Fixed #24937 -- Fixed serialization of Date(Time)RangeField.
Use the DjangoJSONEncoder so that datetime and date are encoded
appropriately.

Backport of 2926559cce34e48efb4b073721926d737e372dd3 from master
2015-11-11 16:53:26 -05:00
Simon Charette
ae4613803c [1.8.x] Refs #25693 -- Added a regression test for to_attr validation on forward m2m.
Backport of cc8c02fa0fa2119704d1c39ca8509850aef84acc from master
2015-11-11 12:30:37 -05:00
Simon Charette
a3baee2f62 [1.8.x] Refs #25693 -- Avoided redundant calls to get_fields() in to_attr validation.
Backport of 4a9c32f5eece9030c2b568e930cec0c1ba8f1da0 from master
2015-11-11 12:30:32 -05:00
arniu
74a5664461 [1.8.x] Made doc icons background transparent.
Backport of cb32292176828f285d196bd90a63dbc30c97a8e0 from master
2015-11-11 11:40:04 -05:00
Sergey Fedoseev
1deaafe2f5 [1.8.x] Fixed #25728 -- Fixed description of GEOSGeometry.contains().
Backport of 34669ea6b88cefb6e6f7176c71b7947234fa50b4 from master
2015-11-11 09:35:25 -05:00
Marti Raudsepp
9cdfdbdd1f [1.8.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:46 -05:00
Tim Graham
43099f543e [1.8.x] Updated six to 1.10.0.
Backport of 4c593eaa5f6767ac56a677299c984ee46c88a2cb from master
2015-11-11 06:54:11 -05:00
Tim Graham
e592574e6e [1.8.x] Fixed #25727 -- Added a doc link to cached_property.
Backport of e0de82c9b2c41c4c479d2245e7d5cd59638b5440 from master
2015-11-10 13:29:04 -05:00
Ian Foote
5fc9a1b8bd [1.8.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:52 -05:00
David Filipovic
8c8a6d8a3f [1.8.x] Fixed #25618 -- Restored migration support for non-upgraded apps.
A non-upgraded app is one that retains South migrations in the
`migrations` module and doesn't introduce Django migrations.
2015-11-10 10:34:25 -05:00
Tim Graham
f787aaeb26 [1.8.x] Removed obsolete note about installing psycopg2 on Windows.
psycopg2 now publishes binary wheel files for Windows
so you can install it using pip.

Backport of bc6eaca304751adbd844b75a66b7d08f05853717 from master
2015-11-10 10:01:11 -05:00
Marti Raudsepp
3144785ebf [1.8.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:47:08 -05:00
Josep Cugat
a42c5376e7 [1.8.x] Fixed #25686 -- Fixed crash on routers without an allow_migrate() method.
Thanks Simon Charette for review.
2015-11-09 10:50:02 -05:00
Aymeric Augustin
94d13415d8 [1.8.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 1014ba026e from master
2015-11-07 23:18:59 +01:00
Thijs van Dien
78a28cca20 [1.8.x] Fixed #25473 -- Changed underscores in url() names to dashes in docs.
To improve consistency, sample URL names that had underscores
in them now use dashes instead. That excludes URL names that
have some relation to the code, such as those generated by
the admin.

Thanks guettli for reporting this.

Backport of 1679472165e840aef4c8c9ece2fbf4620b87beab from master
2015-11-07 22:02:03 +01:00
Tim Graham
bd55e80635 [1.8.x] Fixed #25290 -- Warned against modifying objects created in setUpTestData() in tests.
Backport of 81006b9657534a21c3eadb2bc4a87c46db54c099 from master
2015-11-07 20:34:07 +01:00
Attila Tovt
189ceae19d [1.8.x] Fixed #25681 -- Added 'default' to DATABASES example.
Backport of ac750dbbc0533dcf9c2f6c0f09957adf6f976d3e from master
2015-11-07 11:10:18 +01:00
Sergey Fedoseev
a71fc544c6 [1.8.x] Fixed #25660 -- Documented GEOSGeometry.dims
Backport of f98126a05aeb1671c8036900a2720e21645318ad from master
2015-11-05 10:59:00 +01:00
Alex Morozov
a31973c7c5 [1.8.x] Fixed #24244 -- Documented contrib.admin.models.LogEntry
Backport of 99c58c27d5a8e4a66230c413380508af223d12a8 from master
2015-11-05 10:20:34 +01:00
Tim Graham
e86b5a5aab [1.8.x] Added stub release notes for 1.8.7.
Backport of d49b36e485d201dd230a01f6cb8ea6e8e4fddb49 from master
2015-11-05 09:43:46 +01:00
Tim Graham
617063e1a9 [1.8.x] Post-release version bump. 2015-11-04 18:10:01 +01:00
Tim Graham
80b7e9d09f [1.8.x] Bumped version for 1.8.6 release. 2015-11-04 15:28:20 +01:00
Tim Graham
9a1ccbfcae [1.8.x] Added release date for 1.8.6. 2015-11-04 15:26:24 +01:00
Tim Graham
f735dbb93e [1.8.x] Updated admindocs instructions for the deprecation of patterns().
Backport of 4dea29ec7b09e743268fff17d12171cc5498ae81 from master
2015-11-03 14:50:19 +00:00
Alex Morozov
676636ac8f [1.8.x] Fixed #25132 -- Documented how to retrieve a single value using values_list() and get().
Backport of 4373eac99828d99718a7b245d160e7e64fce2e95 from master
2015-11-03 12:25:51 +00:00
japrogramer
383e2e1c53 [1.8.x] Fixed typo in docs/topics/auth/default.txt.
Backport of a10cbbbc17d4244812ef713437fa44207fe1a223 from master
2015-11-03 08:57:15 +00:00
Sergey Fedoseev
d60208bbae [1.8.x] Refs #25636 -- Updated instructions for libspatialite source installation
Backport of cdb17dcb64d141c5d1919888a32a6f3e3cd58616 from master
2015-10-31 09:38:28 -04:00
Tomasz Anielak
7648ceb06b [1.8.x] Fixed typo in docs/topics/db/models.txt.
Backport of b67502fb8dccefa0c0a3b4a63f9053c4238a8a0c from master
2015-10-31 08:53:48 -04:00
Bryan Marty
dd0e7f5301 [1.8.x] Fixed #24212 -- Added example pylibmc CACHES configuration.
Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master
2015-10-30 13:45:53 -04:00
bee_keeper
06abe84e20 [1.8.x] Added class-based view example to RequestFactory example.
Backport of a17216646adaaa909fe52a4e974b56b4f094fc72 from master
2015-10-30 13:14:29 -04:00
Tim Graham
5adeb41025 [1.8.x] Fixed #24019 -- Fixed inaccurate docs about GenericRelation not supporting aggregation.
This works at least as far back as Django 1.6 according to the test
added in refs #10870.

Backport of e19bd086d608c981098130a49e406de91dcc3d26 from master
2015-10-30 10:36:51 -04:00
Tim Graham
052bd3f7e3 [1.8.x] Fixed #25100 -- Documented an upgrade caveat for contenttypes migration.
Backport of 81b55fb90078788bfdc064550f2ff9da2c79d3b6 from master
2015-10-30 10:31:08 -04:00
Tim Graham
683b3dff7b [1.8.x] Fixed #21422 -- Documented that prefetch_related() results must be homogeneous.
Backport of 69239c0f968ee55cb9ca1e31323fb696db0c2aec from master
2015-10-30 10:28:20 -04:00
Sergey Fedoseev
a00bdceb43 [1.8.x] Fixed #25641 -- Removed section about adding Google projection to spatial_ref_sys table
Backport of 9ae8da0e3 from master.
2015-10-30 10:08:22 +01:00
Tim Graham
e20a27b52b [1.8.x] Fixed #23985 -- Documented a backwards incompatible change in URLValidator.
Backport of 8c5b8018f69226389a1373523c41cd37883c9556 from master
2015-10-29 18:07:05 -04:00
Tim Graham
12f4db23aa [1.8.x] Fixed #25489 -- Documented that SESSION_SAVE_EVERY_REQUEST doesn't create empty sessions.
Backport of abf5ccc29c45d53ec17541179bb5f0a75b28915d from master
2015-10-29 17:29:21 -04:00
Simon Charette
c42e4e736a 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.

Conflicts:
	django/contrib/admin/options.py
2015-10-29 13:20:44 -04:00
Dheerendra Rathor
540de2f797 [1.8.x] Fixed #25620 -- Made URLValidator prohibit URLs with consecutive dots in the domain section.
Backport of 96fe90f5356971e0e51a0bc41e045dde600d7521 from master
2015-10-29 11:14:36 -04:00
Sergey Fedoseev
528ef71a76 [1.8.x] Fixed required SpatiaLite version in docs.
Refs bc0aba7786978ec312809eae5ecb3d751608b5b7 which dropped
support for SpatiaLite < 2.4.

Backport of 1a10ae45b102bd6dab15ef0bd95cda91635916ad from master
2015-10-29 07:58:46 -04:00
Bryan Marty
42f2546742 [1.8.x] Fixed #21516 -- Updated imports paths for some formset functions/classes.
Since refs #21489, FormSet classes and factories are exposed on the
django.forms package.

Backport of 455034d4df048010de4ae0a9a2392b70d1463c61 from master
2015-10-28 15:49:05 -04:00
Tim Graham
2bfd80d845 [1.8.x] Ignored docutils deprecation warnings in runtests.py.
Backport of dbe79d966025e3173557617113e2cca2eb1d1338 from master
2015-10-28 14:08:26 -04:00
Tim Graham
29955ba341 [1.8.x] Made LiveServerTestCase example use StaticLiveServerTestCase.
Backport of 6b5ae92927cb69e8709ab2bb05f6721a7cd37a3c from master
2015-10-28 13:52:33 -04:00
Tim Graham
65bff161ff [1.8.x] Fixed #25618 -- Added a helpful error message when Django & south migrations exist in the same directory. 2015-10-28 09:59:32 -04:00
Tim Graham
69e6045ceb [1.8.x] Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid value.
Backport of 1f07da3e29c7c3d47968e1c4531dd9bf902575b7 from master
2015-10-27 08:13:27 -04:00
Tim Graham
6b631b5c0b [1.8.x] Refs #24979 -- Used inspect.getargspec() on Python 3.2.
inspect.signature() was added in Python 3.3.
2015-10-26 12:25:34 -04:00
Tim Graham
d27085b02d [1.8.x] Documented Python 3.5 support for Django 1.8. 2015-10-25 06:02:21 -04:00
Tim Graham
95b1ae76ba [1.8.x] Refs #23763 -- Fixed SMTPServer Python 3.5 deprecation warning in mail test.
Backport of 7d97c5745e420e3edc22965a2c68c8c9d2eab374 from master
2015-10-25 06:02:21 -04:00
Tim Graham
2a36a9bb15 [1.8.x] Refs #23763 -- Fixed Python 3.5 PendingDeprecationWarning in LazyStream.
Fixed "PendingDeprecationWarning: generator 'LazyStream.read.<locals>.parts'
raised StopIteration" per PEP 0479.

Backport of 3f2de803181ca3c5526ec9d708b2098b8f683808 from master
2015-10-25 06:02:21 -04:00
Tim Graham
e2ea30c440 [1.8.x] Fixed #24979 -- Removed usage of inspect.getargspec().
Backport of 3872a33132a4bb6aa22b237927597bbfdf6f21d7 from master
2015-10-25 06:02:21 -04:00
Tim Graham
84ec3bfc11 [1.8.x] Fixed #25434 -- Documented HttpRequest.site and created a section for middleware attributes.
Thanks Nick Pope for the initial patch.

Backport of 02ef96c5e58d8d3492b6e38246c8268f1a0de47e from master
2015-10-24 09:59:36 -04:00
Sergey Fedoseev
b609296ab2 [1.8.x] Fixed #25603 -- Made clear that geometry's SRID is meant in docs for GEOSGeometry.transform.
Backport of 310049a5a from master.
2015-10-24 10:56:13 +02:00
Jacek Bzdak
d83454fbf2 [1.8.x] Fixed #25397 -- Documented class-based view context variable clash with context processors.
Backport of 494b7986a3e5996d857b085f188a630d1504d9ca from master
2015-10-23 15:24:18 -04:00
薛丞宏
415837543e [1.8.x] Clarified that the test client response content attribute is bytes.
Backport of 484edc81c1ebd195c333f3ea8d3f9ca882a17837 from master
2015-10-23 14:27:15 -04:00
Claude Paroz
244b7c930f [1.8.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:35:54 +02:00
Benjamin Wohlwend
840e97ab01 [1.8.x] Refs #24622 -- Documented alternatives to some test response attributes when using alternative template engines.
Backport of 2b9eed41fa26537d1af4f818c6e4296ce3305b01 from master
2015-10-22 14:11:52 -04:00
Tim Graham
6861c2027d [1.8.x] Fixed #21894 -- Corrected a form.clean() example in case a superclass doesn't return data.
Backport of 80855a4b3787bace050a8b4a2b80f79306e69812 from master
2015-10-21 13:53:56 -04:00
Jacek Bzdak
3e8234b77e [1.8.x] Fixed #25574 -- Documented {{ dict.items }} shadowing in for template tag docs.
Backport of 32cd7069711d2e02fcd20c005c59c175d542c62e from master
2015-10-21 11:46:06 -04:00
Tim Graham
cf1038d8e3 [1.8.x] Fixed #25562 -- Skipped a time dependent admin_filters test on Windows.
Backport of 4a50daf6b343db1b5c316aa29efd657e160d0cd3 from master
2015-10-19 20:27:41 -04:00
Simon Charette
71962629c0 [1.8.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:47 -04:00
Aymeric Augustin
9ccb92ad01 [1.8.x] Fixed #25510 -- Allowed runserver to start with incorrect INSTALLED_APPS.
In that case, the content of INSTALLED_APPS will be ignored until it's
fixed and the autoreloader kicks in. I confirmed this behavior manually.
As explained on the ticket it's hard to write a test for this case

Backport of df0a446f from master.
2015-10-19 20:41:48 +02:00
Josh Smeaton
61ea371822 Refs #25517 -- Fixed backport inconsistencies. 2015-10-19 12:06:11 +11:00
Josh Smeaton
42e029f6c4 [1.8.x] Fixed #25517 -- Made Concat function idempotent on SQLite.
Backport of 6c95b134e9b2d5641c123551c080305e90e6a89d from master
2015-10-17 15:58:17 -04:00
Tim Graham
a8133e73a7 [1.8.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.

Backport of 4dcc2a195595f8d7ddad45bc4baf98ffdeec7f41 from master
2015-10-16 09:34:38 -07:00
Antoine Catton
ee6785ebea [1.8.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 12:21:36 -07:00
Sergey Fedoseev
4171d208f4 [1.8.x] Fixed quotes in GeoQuerySet aggregates examples.
Backport of 92c1ae1b0b9955a511c19e07921c10126b6faa54 from master
2015-10-13 23:41:22 -04:00
Andriy Sokolovskiy
eb85e6672a [1.8.x] Fixed #24156 -- Fixed inherited related name of ManyToManyField.
Fixed situation when parent abstract model declares related_name='+'
and child models had an invalid queryset.

Backport of f7b297815819153b53dc1125d3f42869fb1b7ebc from master
2015-10-13 04:17:50 -07:00
Claude Paroz
15359f1fe9 Added precision about GeoJSON field outputs
Backport of 533c10998 from master.
2015-10-12 21:51:08 +02:00
Tim Graham
ae2250507d [1.8.x] Refs #25527 -- Removed redundant doc heading link that leads to a warning when generating PDF.
Backport of 25f287f6b2f677213605364c33bb37f33feac953 from master
2015-10-07 19:37:00 -04:00
Mariusz Felisiak
4ec96b776b [1.8.x] Fixed #25503 -- Fixed system check crash on ForeignKey to abstract model.
Backport of 914167abf19d16ac97c0f1f6ae1b08cb377c8f3a from master
2015-10-06 19:26:00 -04:00
Tim Graham
9be9c511cc [1.8.x] Fixed #25515 -- Documented the return value of BaseCommand.handle()
Backport of 3f766d44c5ea000ecf47829ca565b1921dab2ac1 from master
2015-10-06 15:09:58 -04:00
Riccardo Magliocchetti
e2db171e15 [1.8.x] Refs #12118 -- Allowed "mode=memory" in SQLite test database names.
Backport of 3543fec3b739864c52de0a116dde3b0e5e885799 from master
2015-10-06 12:33:24 -04:00
Tim Graham
de570d4da9 [1.8.x] Fixed #25496 -- Made ModelChoiceField respect prefetch_related().
Backport of 6afa6818fcf25665bbf61f0921c8c8c6fa8f223e from master
2015-10-05 19:25:21 -04:00
Tim Graham
bf42888801 [1.8.x] Fixed #25502 -- Added supported Python versions in 1.7, 1.8 release notes.
Backport of b215a3ab63d1c34746855594656e988561484fe3 from master
2015-10-05 14:20:11 -04:00
Tim Graham
9c60752ba5 [1.8.x] Added stub release notes for 1.8.6.
Backport of 58195f0b16999245ada6bd010b71c9c5352ae608 from master
2015-10-03 19:58:36 -04:00
Tim Graham
ef597580ec [1.8.x] Post-release version bump. 2015-10-03 19:54:05 -04:00
Tim Graham
b35adb0909 [1.8.x] Bumped version for 1.8.5 release. 2015-10-03 19:36:29 -04:00
Tim Graham
badcd2933e [1.8.x] Added release date for 1.8.5.
Backport of 2eb5589a721488b592ed05d6790d9ad7d2b9dafd from master
2015-10-03 19:35:22 -04:00
Ben Kraft
c03f0c282d [1.8.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:03:05 -04:00
Andrew Artajos
29c9a7d220 [1.8.x] Fixed #25398 -- Revised instances of os.path.join()
Replaced occurrences of os.path.join(BASE_DIR, 'folder/subfolder')
to os.path.join(BASE_DIR, 'folder', 'subfolder')

Backport of d2ef521a53 from master.
2015-10-03 09:10:26 +02:00
John Moses
a9b6218960 [1.8.x] Fixed #25481 -- Added field.help_text to "Looping over a form's fields" docs.
Backport of ac09d22f7913ff09f98001ff51b783932290e378 from master
2015-10-02 13:00:59 -04:00
Nick Williams
2a8988c3b0 [1.8.x] Fixed link to the MySQL Connector/Python Django Backend documentation.
Backport of 3f342d74e9196da475dd312cf43eaffec13af964 from master
2015-10-02 12:33:26 -04:00
Marco Fucci
0e2d3b9304 [1.8.x] Fixed #24505 -- Fixed clash with hidden m2m fields.
Added support for multiple m2m fields with the same 'to' model
and with related_name set to '+'.

Backport of 4ee08958f154594b538207a53c1d457687b3f7ae from master
2015-09-30 18:38:49 -04:00
David Sanders
07e594bba2 [1.8.x] Clarified that Model.delete() isn't called as a result of a cascading delete.
Backport of 5c6316dc3467fd7b669bea9157f591ac5fd00ec4 from master
2015-09-30 08:44:40 -04:00
Tim Graham
f79682eaf2 [1.8.x] Fixed #25485 -- Improved deprecation docs for contenttypes reorganization. 2015-09-29 19:24:59 -04:00
David Sanders
1d22b20f11 [1.8.x] Improved "“standalone” Django usage" example.
Backport of ae9f9dc37f39afeaa45c646cf6eef81beffcf021 from master
2015-09-29 15:09:34 -04:00
Tim Graham
f3ce888d3f [1.8.x] Fixed #25376 -- Required virtualenv in installation instructions.
Thanks Anjul Tyagi for some of the draft text.

Backport of a523d94b4581ec41c86f5bbaaffdf5bb6b819c2e from master
2015-09-29 14:33:53 -04:00
Tim Graham
e6f1b1db4c [1.8.x] Documented auth's login/logout function parameters.
Backport of c14b6b52ff131db263bf06a02f903a73390975da from master
2015-09-28 14:12:43 -04:00
Tim Graham
5ebf6fd891 [1.8.x] Fixed #24323 -- Documented @admin.register can't be used with super(XXXAdmin in __init__().
Backport of 4cd2bdae07ac5561fdae0eede58c68df4dfcc780 from master
2015-09-28 07:26:54 -04:00
Mariusz Felisiak
cb2de5e2e9 [1.8.x] Fixed #25421 -- Fixed test --keepdb option on Oracle.
Backport of a3a6def867c61d24dfded6cbfef7f820409dc739 from master
2015-09-26 19:52:09 -04:00
Rob Hudson
4dcd4ef17e [1.8.x] Corrected use of 'affect' vs 'effect' in docs.
Backport of 021782d22b80ea57fdd5e040add58adeafaedc55 from master
2015-09-25 18:35:19 -04:00
Tim Graham
2ca137e271 [1.8.x] Fixed #25451 -- Added advice about organizing tests.
Backport of 53e89ce2e71411ff9d1c3fd6f2b10d052a4aeace from master
2015-09-25 07:15:54 -04:00
Tim Graham
8794ded8d6 [1.8.x] Removed a prominent note about django.utils.unittest deprecation.
It doesn't seem this would be relevant to most readers.
2015-09-24 13:25:43 -04:00
Tim Graham
bb90e8fa2b [1.8.x] Fixed #25455 -- Optimized dictfetchall() example.
Thanks aklim007 for the suggestion.

Backport of 361f60479d1890e8144fc254d7389a67b35725e9 from master
2015-09-24 13:18:45 -04:00
Tim Graham
66f50e97d6 [1.8.x] Bumped latest Python 2.7 release in docs/ref/databases.txt.
Backport of ce531f7ad783facc5799cf43b59b5ce053aa5d9e from master
2015-09-24 10:57:00 -04:00
Tim Graham
e7064df44f [1.8.x] Fixed #25386 -- Warned about differences between Engine and DjangoTemplates.
Backport of 2634f606d55b63511ab1c50c4fad2d52fbda1b19 from master
2015-09-23 19:19:03 -04:00
Benjamin Wohlwend
67896c8561 [1.8.x] Fixed #25453 -- Reworded makemigration's ask_not_null_alteration suggestion.
Backport of de31423130912a012513aad93ec805f8e08a0d5e from master
2015-09-23 13:41:01 -04:00
Don Kirkby
1386a823c0 [1.8.x] Fixed typo in docs/topics/db/examples/one_to_one.txt
Backport of dcd7358afd7985c3803cd8ef2a189ca39aaa9603 from master
2015-09-23 13:32:01 -04:00
Tim Graham
4a06a904dc Refs #24361 -- Corrected documented level of the 'django' logger.
The logger doesn't define an explicit level, therefore it defaults
to WARNING.
2015-09-23 11:21:16 -04:00
Henry Jordan
5add28dad0 [1.8.x] Fixed #25447 -- Emphasized the need to restart dev server when adding template tags.
Backport of af95eee9fb70dae5b3b2ce8bc73c13fc1de239ff from master
2015-09-22 19:43:25 -04:00
Rik
55f80d28d4 [1.8.x] Added link to Babel's message extracting functionality.
Backport of 6e51d5d0e531c6aead9ebd638a63ffdc32245e5a from master
2015-09-22 08:54:49 -04:00
Aymeric Augustin
76bf4bc111 [1.8.x] Recommended against default_app_config.
Most likely this is a losing fight -- people seem to love this small
convention -- but at least the reasons for avoiding it will be
documented.

Refs #25356.

Backport of 94a36cf from master
2015-09-22 08:32:39 +02:00
Tim Graham
528c1330f8 [1.8.x] Added "readded" to the docs wordlist.
Backport of 4b1416d372c3cf4146855ada9e6444cb6649648e from master
2015-09-21 17:08:27 -04:00
Aymeric Augustin
425c5e40ea [1.8.x] 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).

Backport of 91e9f1c from master
2015-09-21 22:31:13 +02:00
Claude Paroz
158b0a2837 [1.8.x] 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.

Backport of 65a1055a3 from master.
2015-09-21 21:50:11 +02:00
Matt Deacalion Stevens
5023d63f85 [1.8.x] Corrected docstring in core.urlresolvers module.
The RegexURLResolver.resolve() method no longer returns a tuple.
It has returned a ResolverMatch object since commit e0fb90b2.

Backport of c07f9fef398a21a76d350e8b02b396b3e580b751 from master
2015-09-21 14:00:31 -04:00
Flavio Curella
63147dfa07 [1.8.x] Fixed #25430 -- Fixed incorrect RunSQL examples.
Backport of 95edabb45e016ed269f96acc03d4a2bfcecd6b71 from master
2015-09-19 18:19:38 -04:00
Aymeric Augustin
1abd177696 [1.8.x] 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.

Backport of c3904de from master
2015-09-19 20:28:22 +02:00
Mariusz Felisiak
a0ce708c1c [1.8.x] Made assorted improvements to the Oracle documentation.
Backport of 6f1b09bb5c1bafe4633514cbff37f9a7ed7a63ae from master
2015-09-18 09:50:35 -04:00
Hynek Cernoch
eb0bbb8f3a [1.8.x] Refs #17785 -- Made docstring for sqlite3's get_relations() consistent with other backends.
Backport of 4b9d063da05faa112577a4e3cefd020850a25e9e from master
2015-09-18 09:33:23 -04:00
Aric Coady
7d471fe662 [1.8.x] Refs #20625 -- Fixed custom queryset chaining with values() and values_list(). 2015-09-17 19:20:09 -04:00
Tim Graham
4f0966e75f [1.8.x] Added a version requirement to mysqlclient in test requirements.
Backport of fc8a6a9b002aef90ff68f3d95e560db1ea728c76 from master
2015-09-17 15:11:41 -04:00
Tim Graham
120be9b6c0 [1.8.x] Added a version requirement to python-memcached in test requirements.
Backport of 12a62e7e4b8e6d1136aa4457619449cbbcf9dd7c from master
2015-09-17 15:10:13 -04:00
Stephen Paulger
52c1212726 [1.8.x] Removed unnecessarily rude terminology.
Backport of 443dffbeb214da18a0a4204b5295c2b97df418ab from master
2015-09-16 09:35:37 -04:00
Matthew Crowson
688f8de7b6 [1.8.x] Fixed typo in django/core/cache/backends/base.py docstring.
Backport of 8615e415861ea93afb5a84365895bd7b9af7be6f from master
2015-09-16 09:35:14 -04:00
Daniel Hahler
e3bdbac733 [1.8.x] Added upgrade tip in BaseCommand.option_list deprecation comment.
Backport of d731cf5caf043189fda3708cc0dace5d8f94db6b from master
2015-09-15 12:08:09 -04:00
Tim Graham
8388f24e79 [1.8.x] Fixed #25369 -- Corrected syndication's get_object() example.
Backport of 64d7a553e1be20174b0aa2882111049abf392d4f from master
2015-09-14 15:30:31 -04:00
Tim Graham
d0d2567120 [1.8.x] Reverted "Fixed #25203 -- Documented how to pass Apache environment variables to Django."
As discussed on the ticket, this isn't a pattern we should recommend.

This reverts commit c8773493b62083b9ca5476a6040737f5cca79944.
2015-09-14 14:15:20 -04:00
Adam Chainz
3c2c74f58f [1.8.x] Fixed #25377 -- Changed Count queries to execute COUNT(*) instead of COUNT('*').
Backport of 3fe3887a2ed94f7b15be769f6d81571031ec5627 from master
2015-09-14 14:07:32 -04:00
Ville Skyttä
69017bade0 [1.8.x] Fixed #25393 -- Fixed MySQL crash when adding text/blob field with unhashable default.
Backport of 4d933ad4181a511f3ced98edba4e17aff054e0e2 from master
2015-09-14 12:28:04 -04:00
Kholid Fuadi
07e01dce40 [1.8.x] Fixed typo in django/forms/utils.py docstring.
Backport of b8b776aabe9afcd771f5c49afd2b41b44cae65a4 from master
2015-09-14 08:50:15 -04:00
Tim Graham
2955dfdeca [1.8.x] Refs #25386 -- Added links to the OPTIONS of the built-in template backends.
Backport of f3e5a746469401a16939de0fc17fed584ced2118 from master
2015-09-12 18:43:57 -04:00
Markus Holtermann
3cc5cc7958 [1.8.x] Fixed #25384 -- Ordered imports in newly created migration files 2015-09-12 13:23:38 +10:00
Tim Graham
95c00c40ae [1.8.x] Refs #25381 -- Clarified that AppConfig model methods search only the current app.
Backport of e7e8d30cae9457339eb49ae8584e82ff0a038e99 from master
2015-09-11 14:09:15 -04:00
Paul Rentschler
c8773493b6 [1.8.x] Fixed #25203 -- Documented how to pass Apache environment variables to Django.
Backport of 47016d4322574860f90431e1c87d19f7a1f778c6 from master
2015-09-11 13:24:37 -04:00
Renato Oliveira
f328ebdede [1.8.x] Fixed #25382 -- Removed obsolete references to DateQuerySet.
Backport of e3720b990a33ae259da4b1f1f6069aa6bbc8c03d from master
2015-09-11 12:21:11 -04:00
Jose Carlos Menezes
d32edd8c99 [1.8.x] Fixed #25351 -- Added example for database test settings to docs.
Backport of cf99bae53af2ed8f73622bc8a8ed0331c272fda3 from master
2015-09-11 08:19:32 -04:00
Flavio Curella
501b32b255 [1.8.x] Fixed #25380 -- Added Postgres.app to the PostGIS options on OS X.
Backport of 0c7c18cc9e80101c882749c99437ad700fde0ca0 from master
2015-09-11 08:00:07 -04:00
Daniel Hahler
6c19d81951 [1.8.x] Fixed #25372 -- Fixed autocompletion for options of non-argparse commands.
Backport of acb833081dd3abca3bc62753103690f23fb3f0ec from master
2015-09-09 14:52:33 -04:00
Bibhas
72219d7b32 [1.8.x] Fixed #25371 -- Added reverse_sql and reverse_code examples to docs.
Backport of 4283a038431ef6428d086d4911179bd8eb8b2299 from master
2015-09-09 14:21:17 -04:00
Aymeric Augustin
ce3dd17c2e [1.8.x] Updated references to the TEST_* database settings.
They were removed in Django 1.9.

I could leave the reference to TEST_DEPENDENCIES in the 1.2.4 release
notes because the link points to the right location and the name was
accurate at the time.

Backport of 6d1110f from master
2015-09-05 20:31:22 +02:00
Tim Graham
26658ccb0e [1.8.x] Removed some discussion of deprecated {% url %} behavior.
Backport of dbd8e32f7495fed54203376493f09adc474ebde1 from master
2015-09-05 11:56:13 -04:00
Maarten
c06953e8f9 [1.8.x] Fixed #25355 -- Made two tweaks to docs/topics/db/aggregation.txt.
Backport of fe58d96e50e33b05f2a45f1493eca39ec9b3d030 from master
2015-09-05 10:20:36 -04:00
David Sanders
e060d57e9a [1.8.x] Added default value for default kwargs for QueryDict.
Backport of 48c420d99209b147b58d7b873d1b54f76249c8dc from master
2015-09-05 08:23:16 -04:00
Tim Graham
62347208bb [1.8.x] Fixed #24525 -- Fixed AssertionError in some complex queries.
Thanks Anssi Kääriäinen for providing the solution.

Backport of 2dc9ec5616a942de3a0886a707f93988f56dd594 from master
2015-09-05 08:19:38 -04:00
David Sanders
f1d6b5b5b1 [1.8.x] Added links to new security settings introduced in 1.8.
Backport of cc968b9c9046769ddce574b0fc0ce4f525f25843 from master
2015-09-04 12:57:26 -04:00
Tim Graham
20dfd02db0 [1.8.x] Refs #25144 -- Revised deprecation timeline: migrations won't become compulsory.
Backport of e133b55943f26e87cff5b22215a776a9ce3fc6f3 from master
2015-09-04 09:59:30 -04:00
Maxime Lorant
7dabaa8ee3 [1.8.x] Refs #25345 -- Updated links to code.google.com.
Backport of c92cd22d02349b73d169a3a2ff3b6fe7a54bfb0c from master
2015-09-04 08:18:22 -04:00
David Gibbons
64410a09da [1.8.x] Updated static files howto title to include JavaScript.
Backport of 526a413870b9844c2279f5855ad0774edb24f971 from master
2015-09-04 08:08:22 -04:00
Dražen Odobašić
5ed9616a09 [1.8.x] Fixed #25326 -- Added namedtuple example for executing custom SQL.
Backport of 5ab65ca5c900557f508f62a260f9ea53d9d93f37 from master
2015-09-03 13:17:34 -04:00
Tim Graham
800a162c0c [1.8.x] Moved misplaced versionadded annotation.
Backport of 12083c5d47a8db1193e401fca1520da5d4a31668 from master
2015-09-03 08:58:54 -04:00
Tim Graham
6acf0df862 [1.8.x] Refs #24152 -- Fixed typos in deprecated GeoQuerySet aggregate names.
Backport of a8eb715b663ff836e54f04c0e4fcafa2ee468b4e from master
2015-09-02 19:59:27 -04:00
Aymeric Augustin
2b08b36488 [1.8.x] Made the autoreloader survive all exceptions.
Refs #24704.

Backport of b79fc11d73 from master
2015-08-29 23:13:12 +02:00
Aymeric Augustin
cc14d51ee8 Fixed #24704 -- Made the autoreloader survive SyntaxErrors.
With this change, it's expected to survive anything except errors
that make it impossible to import the settings. It's too complex
to fallback to a sensible behavior with a broken settings module.

Harcoding things about runserver in ManagementUtility.execute is
atrocious but it's the only way out of the chicken'n'egg problem:
the current implementation of the autoreloader primarily watches
imported Python modules -- and then a few other things that were
bolted on top of this design -- but we want it to kick in even if
the project contains import-time errors and django.setup() fails.

At some point we should throw away this code and replace it by an
off-the-shelf autoreloader that watches the working directory and
re-runs `django-admin runserver` whenever something changes.

Backport of fe6ddb837d from master
2015-08-29 23:12:08 +02:00
Aymeric Augustin
dc8786ce94 [1.8.x] Ensured gen_filenames() yields native strings.
This also fixes a test failure on Python 2 when Django is installed in a
non-ASCII path. This problem cannot happen on Python 3.

Backport of c2fcba2ac7 from master
2015-08-29 23:10:55 +02:00
Aymeric Augustin
6af1e47aab [1.8.x] Refactored autoreload tests.
* Added helpers to test uncached and cached access.
* Fixed test_project_root_locale: it duplicated test_locale_paths_setting.
* Rewrote test_only_new_files: test more cases.

Backport of dfa712efb8 from master
2015-08-29 23:09:57 +02:00
Aymeric Augustin
b18bb65fd2 [1.8.x] Accounted for error files in the autoreloader.
* When some old files contain errors, the second call to
  gen_filenames() should return them.
* When some new files contain errors, the first call to
  gen_filenames(only_new=True) should return them.

Backport of 23620cb8e0 from master
2015-08-29 23:08:06 +02:00
Tim Graham
0d368bfb47 [1.8.x] Fixed #25323 -- Fixed selenium test failures with chromedriver 2.18.
Backport of 7ac0cd445e056cac9bfc1fed11026ab6c74b8818 from master
2015-08-28 14:38:18 -04:00
Tim Graham
3cc67a637a [1.8.x] Fixed #25299 -- Fixed crash with ModelAdmin.list_display value that clashes with a model reverse accessor.
Backport of 9607a0404188bbe612f05216f5a82df26f4b4e80 from master
2015-08-28 09:03:34 -04:00
Tim Graham
4f83bfa9e5 [1.8.x] Refs #2495 -- Documented that MySQL cannot have TextField(unique=True).
Backport of e8cbc2b322d873a6fe39faca18d340ce93035087 from master
2015-08-27 09:30:29 -04:00
Tim Graham
b7042576f9 [1.8.x] Added 'subtransactions' to spelling wordlist.
Backport of 91ec1841f52ba446ce8a3ca5bec351a454dd4a11 from master
2015-08-26 08:24:19 -04:00
Tim Graham
58335a2c0b [1.8.x] Fixed #25311 -- Removed vague language about "partial commits" from docs.
Backport of ea47a052ba7a097a98993c240ecea96a115f6c25 from master
2015-08-25 20:24:05 -04:00
David Sanders
0723a39a59 [1.8.x] Updated PROJ.4 link to new GitHub wiki.
Backport of 7efdd40407838dc3c922e0e62e9b4eefabe7de01 from master
2015-08-25 09:57:34 -04:00
Tim Graham
206534893f [1.8.x] Fixed #25309 -- Corrected that ATOMIC_REQUESTS applies per view not per request.
Backport of 2a1a085bf1355370205dd44fa60c6aab91ed0976 from master
2015-08-25 09:54:48 -04:00
Claude Paroz
c177d0690e [1.8.x] Fixed #25295 -- Restored 'no active translation' after language override
Thanks David Nelson Adamec for the report and Tim Graham for the review.
Backport of 9324935c3 from master.
2015-08-25 10:37:54 +02:00
Kai Richard Koenig
181528726e [1.8.x] Fixed #25040 -- Fixed migrations state crash with GenericForeignKey
Backport of 60f795c0608119cdb02d61d3eb59f34ebdb55754 from master
2015-08-22 08:50:19 -04:00
Tim Graham
0e3a8c22df [1.8.x] Fixed typo in tests/migrations/test_autodetector.py.
Backport of 01966bb2a779f68d1a371acb1bf814fac7bb5132 from master
2015-08-20 14:52:36 -04:00
Tim Graham
ffe755e990 [1.8.x] Fixed #24951 -- Fixed AssertionError in delete queries involving a foreign/primary key.
Thanks Anssi Kääriäinen for help.

Backport of 333cbdcd2de4546e33ad50ebd8b67e1a1e87aeec from master
2015-08-20 08:46:08 -04:00
Marc
3fa5229600 [1.8.x] Recommended the JavaScript Cookie library instead of jQuery cookie.
jQuery cookie is no longer maintained in favor of the JavaScript
cookie library. This also removes the jQuery dependency.

Backport of f9de1972685ab5ab31ce483a297d85d3e119088b from master
2015-08-19 10:05:01 -04:00
Markus Holtermann
79bd15ef32 [1.8.x] Fixed style issues in testing docs
Backport of f33607ce0b744794f6ceafa1dddffbcb32e90978 from master
2015-08-19 21:40:36 +10:00
Tim Graham
63a4384ba1 [1.8.x] Added stub release notes for 1.8.5.
Backport of 84335e3d1fcc53862e4d8c24ec58e3b4f608b410 from master
2015-08-18 19:53:05 -04:00
Anton Strogonoff
a67bf4be35 [1.8.x] Used consistent capitalization and hyphenation of "class-based views" in docs.
Backport of 20787b5c298d97dda10286a942a788423fed483f from master
2015-08-18 19:08:08 -04:00
Tim Graham
3caa7a2325 [1.8.x] Post-release version bump. 2015-08-18 13:29:42 -04:00
Tim Graham
acc3c1df84 [1.8.x] Bumped version for 1.8.4 release. 2015-08-18 08:36:48 -04:00
Tim Graham
2eb86b01d7 [1.8.x] Fixed DoS possiblity in contrib.auth.views.logout()
Thanks Florian Apolloner and Carl Meyer for review.

This is a security fix.
2015-08-18 08:15:15 -04:00
Tim Graham
048bccb1be [1.8.x] Added stub release notes for security releases. 2015-08-18 08:15:06 -04:00
Anton Strogonoff
e5663ec297 [1.8.x] Limited line length in docs/ref/contrib/messages.txt example.
Backport of d35f184b20743352dc41f1272184005054a36ae7 from master
2015-08-17 07:48:24 -04:00
Caio Ariede
29fa1b5800 [1.8.x] Fixed #25180 -- Prevented varchar_patterns_ops and text_patterns_ops indexes for ArrayField.
Backport of dad8434d6ff5da10959672726dc9b397296d380b from master
2015-08-15 10:11:09 -04:00
Tim Graham
632a917c11 [1.8.x] Refs #23843 -- Updated Oracle annotations workaround to reflect latest status.
Backport of f9636fdf922fe49ff82d02b17d6b34469fcf1fda from master
2015-08-14 13:52:33 -04:00
Tim Graham
d2dfe3ae81 [1.8.x] Fixed #25268 -- Tweaked wording in docs/ref/forms/api.txt
Backport of 5b5a27942b2fa113df4d6eb3d77a33c85f58634f from master
2015-08-14 08:28:53 -04:00
Adam Brenecki
99b5649a07 [1.8.x] Fixed #24988 -- Documented passing a dictionary of ValidationErrors to ValidationError
Backport of 52a190b65781f8dc07abd230aaf9043fbdbf4fba from master
2015-08-13 17:43:06 -04:00
Fabrizio Ettore Messina
c652383379 [1.8.x] Fixed #25267 -- Corrected message for admin.E122 system check.
Backport of ece78684d9e09c477c4a0f10236c0aec45bac726 from master
2015-08-13 13:14:17 -04:00
Andriy Sokolovskiy
d5e3eb986d [1.8.x] Removed unreachable code
Backport of 4359be023be3f5e5a1d1d89bf8f193d15f49b7a4 from master
2015-08-13 13:12:52 -04:00
Tim Graham
312abecefd [1.8.x] Corrected indentation of JsonResponse docs.
Backport of 290145e6616b32a0b0c63f44b7c09d0a4af7dfd5 from master
2015-08-12 10:28:43 -04:00
Tim Graham
77ced0b740 [1.8.x] Updated memcached library links to point to PyPI.
Backport of d772d812cf583e0f99e21850f26addf1d59bfa35 from master
2015-08-11 21:21:24 -04:00
Tim Graham
bcf5fb78d7 [1.8.x] Fixed typo in docs/ref/contrib/gis/geoquerysets.txt
Backport of 56ed80ac2a7dac6dc26754f7fe95941e8a6f124e from master
2015-08-11 09:33:44 -04:00
Tim Graham
e4b813c0e7 [1.8.x] Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and
81e1a35c364e5353d2bf99368ad30a4184fbb653.

Thanks Carl Meyer for review.

Backport of 5980b05c1fad69eef907e0076aa2dc837edab529 from master
2015-08-10 11:31:22 -04:00
Claude Paroz
90c7078f48 [1.8.x] Removed unnecessary comma in docs
Backport of f2e4c7aca48374cd18f7e3bea333bbb5d73154cf from master
2015-08-10 10:20:51 -04:00
Tim Graham
2112879305 [1.8.x] Refs #25236 -- Discouraged use of ifequal/ifnotequal template tags.
Backport of 787cc7aa843d5c0834f56b5f8ae03b86ce553c51 from master
2015-08-08 08:55:51 -04:00
Tim Graham
43a05a93e9 [1.8.x] Corrected some inconsistent headings in docs/ref/templates/builtins.txt.
Backport of 7080cef7bf12c7985d6c81822296e70d13553ef4 from master
2015-08-08 08:55:37 -04:00
Claude Paroz
cda66497aa [1.8.x] Updated Wikipedia links to use https
Backport of 64982cc2fb from master.
2015-08-08 12:09:53 +02:00
Claude Paroz
293c5fcdcc [1.8.x] Updated Transifex links in docs
Backport of 18f3d4c1bd from master.
2015-08-08 11:34:03 +02:00
mlavin
ac46eb7e83 [1.8.x] Fixed #25231 -- Added recording of squashed migrations in the migrate command.
Ensured squashed migrations are recorded as applied when the
migrate command is run and all of the original migrations
have been previously applied.

Backport of 69db1c745506bf63026def25d6854755179feaa8 from master
2015-08-07 18:16:37 -04:00
Tim Graham
ad2ac53054 [1.8.x] Fixed #25233 -- Fixed HStoreField.has_changed() handling of initial values.
Thanks Simon Charette for review.

Backport of a7b7f27c05244d69a11545261eb3bbd73791b3d2 from master
2015-08-07 14:31:05 -04:00
Tim Graham
a7fb311ace [1.8.x] Fixed #25229 -- Clarified how an iterable works with @permission_required
Backport of 16a8d01308f8ca4a7b4673424059424ba3fe36c8 from master
2015-08-05 17:18:13 -04:00
Tim Graham
ce0f2a4a4f [1.8.x] Fixed #25213 -- Discouraged use of QuerySet.extra()
Thanks Anssi Kääriäinen for the draft text and Simon Charette
for review.

Backport of e8cd65f8297928d3fa7ad3d338953a4423028713 from master
2015-08-05 08:15:44 -04:00
Tim Graham
6f6043fd26 [1.8.x] Fixed #25212 -- Documented the RawSQL expression.
Backport of 97fa7fe961f961b6c93a11b50a7a1ed35c8bce8d from master
2015-08-05 08:15:30 -04:00
Tim Graham
df05495e8c [1.8.x] Fixed #25224 -- Fixed typo in docs/ref/contrib/flatpages.txt
Backport of 28cb272a7279e6dfc4d5c53838ebf7343c3e66b5 from master
2015-08-04 14:52:24 -04:00
Alasdair Nicol
07546333c1 [1.8.x] Fixed password_reset signature in docs
Backport of 6d7a9d96fe57597719bc40491e3d428f01757ef3 from master
2015-08-04 13:57:45 -04:00
Caio Ariede
9f10c5cdf5 [1.8.x] Fixed #25136 -- Documented Count('X', distinct=True) in aggregate topic guide.
Backport of 3862c568ac1b920188ecfbe5cd8073160206d6b9 from master
2015-08-04 10:50:18 -04:00
Curtis Maloney
473af19273 [1.8.x] Fixed #25215 -- Solved reference to forms.HStoreField in declaration of HStoreField
Correct test which was using the model field in a test form.

Backport of 9f73009e98c51986a50cc45844b8bca72673e955 from master
2015-08-04 19:19:05 +10:00
Alasdair Nicol
7a8460191e [1.8.x] Fixed #25206 -- Fixed error message when checking a ModelAdmin fieldset's fields.
Backport of 8972818289452d611d97fac0f4a6d24625987b31 from master
2015-08-03 08:59:13 -04:00
Tim Graham
f32bb3adf0 [1.8.x] Refs #17914 -- Discouraged using reverese() with callables.
Backport of a6acfc31837fd7a9e0e387320d995b2c85cfcfce from master
2015-08-03 08:38:27 -04:00
Caio Ariede
5bdf0eafb1 [1.8.x] Fixed #25207 -- Misspelled word in documentation: dialogue
Backport of 98eb91171d7bb97327c714ef8e816103555573e6 from master
2015-08-01 19:18:10 -04:00
Matt Robenolt
7e7e447b40 [1.8.x] Removed obsolete note about sentry/raven not handling WSGI properly.
2.0.7 was released in 2012.

Backport of 514fee82a18e2b8fed0b6e31a95bd7a1a94980ab from master
2015-08-01 19:11:49 -04:00
Tim Graham
6bb8258255 [1.8.x] Fixed #25204 -- Added missing space in runserver logging.
Backport of 1a76257b1b385ac8afd67bd36d061f508613e4d2 from master
2015-08-01 08:31:32 -04:00
Tim Graham
ef5cf564bf [1.8.x] Fixed #24690 -- Added a warning about mutable defaults for ArrayField.
Backport of f93e7f5674436b230e6b4023570939a20c0c6055 from master
2015-08-01 07:53:33 -04:00
Adam Chainz
b46dad1bef [1.8.x] Fixed #25176 -- Prevented TestCase.setUpTestData() exception from leaking transaction.
Backport of 0abb06930fc0686cb35079934e5bb40df66f5691 from master
2015-08-01 07:38:20 -04:00
Tim Graham
1acdb88136 [1.8.x] Improved link to the supported versions section of the download page.
Backport of c3b66dafdd473227065420bfc2d8d6819fe713ad from master
2015-07-31 12:27:18 -04:00
Tim Graham
f5f03e3de9 [1.8.x] Clarified assertRaisesMessage() behavior with respect to the message.
Backport of 6bb4f07372fe748a701ad38e5c0d1182dab9e2c8 from master
2015-07-31 09:20:00 -04:00
Tim Graham
386a6dc3d7 [1.8.x] Fixed #25174 -- Moved some details of CheckMessage to the reference guide.
Backport of faa2a0f662ed6fe0b90d10e98cc8ee3795d9307c from master
2015-07-31 08:51:13 -04:00
Tim Graham
466950fa98 [1.8.x] Fixed #25168 -- Documented how to avoid foreign key constraint error after upgrading to 1.8.
Backport of 70912e137d5a6b089f35c662115fb758a00d7002 from master
2015-07-31 08:20:35 -04:00
Alasdair Nicol
57615516bc [1.8.x] Removed unnecessary F() from Func expressions docs
Backport of b792c4804b611369c3e146f1fd967d9c5bdea17f from master
2015-07-30 21:15:30 -04:00
Claude Paroz
22e9c87bb8 [1.8.x] Updated GeoIP test for newer versions
Backport of 3f9dca62cb31a2b4b279b7d312a850660d21e91f from master
2015-07-30 18:16:45 -04:00
Tim Graham
77566dcc6e [1.8.x] Fixed #25183 -- Fixed non-deterministic GeoIP test.
google.com doesn't always resolve to an IP inside the United States.

Backport of 5b6ca150730cddb09ff8622d49b273d57b9c6703 from master
2015-07-30 18:12:37 -04:00
Tim Graham
a9a1da4de6 [1.8.x] Fixed #25199 -- Fixed dead link to HTMLdoc.
Backport of e176de25127a2750ea1c6a705b2c0983b5782b41 from master
2015-07-30 13:26:36 -04:00
Tim Graham
fc279ed298 [1.8.x] Fixed #25178 -- Added DEFAULT_FROM_EMAIL to deployment checklist.
Backport of ae32f324981dd64d7c04fcbed9d99356914a61de from master
2015-07-28 09:45:55 -04:00
Tim Graham
a66d843eec [1.8.x] Fixed #25159 -- Removed brackets from class/function/method signatures in docs.
Thanks hellbeast for the initial patch.

Backport of 87d55081ea398c65b2503d22ed3907a9175ec729 from master
2015-07-27 10:43:09 -04:00
jorgecarleitao
23b975813b [1.8.x] Fixed typo in docs/ref/middleware.txt
Backport of 7c642cafbb9e9ab1ba3ee7bb3d8fe1c0a58e06e8 from master
2015-07-27 07:18:24 -04:00
Tim Graham
19ac8b2fe1 [1.8.x] Fixed #25166 -- Clarified how auth permissions are created.
Thanks Baptiste Mispelon for report and review.

Backport of 217f173be025d2cce6484c760ea6ec77436f26a1 from master
2015-07-25 09:32:38 -04:00
Tim Graham
65885f265a [1.8.x] Fixed malformed Sphinx directives.
Backport of e3d1f2422c49d7f65d017b8caa35215afe18f835 from master
2015-07-25 06:39:16 -04:00
Alasdair Nicol
82418a5d6d [1.8.x] Fixed #25161 -- Encouraged users to install the latest release in docs
Backport of 600fb7c51b22bc0d9138f580bb5e5abcfedc76ee from master
2015-07-24 13:36:44 -04:00
Matt Johnson
05c7129bf2 [1.8.x] Fixed #12768 -- Fixed QuerySet.raw() regression on FK with custom db_column.
Backport of e063ac2fae007a2eecaeab5ce17064c31230ce29 from master
2015-07-23 18:44:58 -04:00
Tim Graham
ca13fb021f [1.8.x] Fixed import order in django/core/serializers/json.py 2015-07-22 07:01:03 -04:00
James Bennett
432a0cde39 [1.8.x] Fixed #25156 -- Mentioned django.setup() in the settings overview for standalone Django use.
Backport of 5281f8b635f10b2839dc146d7e44f7d94d1955d8 from master
2015-07-21 17:10:56 -04:00
Tim Graham
e689873a69 [1.8.x] Normalized indentation and line lengths in docs/topics/auth/default.txt.
Backport of 5fd83db255500507484c5fedbd98763460a59656 from master
2015-07-21 08:30:51 -04:00
Tim Graham
2cad91cac6 [1.8.x] Fixed #25147 -- Fixed debug view copy-paste/interactive toggle.
The whitespace added in 1101467ce0756272a54f4c7bc65c4c335a94111b
broke the initial comparison.

Backport of d7848c11e008ddeb036a95d389caa3b2c97b795e from master
2015-07-20 11:52:44 -04:00
Ali Vakilzade
beb68b2a83 [1.8.x] Fixed signature of ModelAdmin.get_paginator() in docs.
Backport of ecf4ed246ae192f8d381b799b921a892fd7afa85 from master
2015-07-20 08:08:22 -04:00
Konrad Świat
7355437e49 [1.8.x] Fixed #25125 -- Updated docs on cookie naming conventions.
Thanks Tim Graham for the review and kezabelle for the report.

Backport of 2f6bdab1597ee42b36752bf9f624d3386e951379 from master
2015-07-17 07:57:23 -04:00
Rafał Selewońko
395b33a538 [1.8.x] Fixed typo in docs/topics/i18n/translation.txt
Backport of 8e306967dec222cfb5df036855a59ec29a4cbcb2 from master
2015-07-16 07:32:07 -04:00
Tim Graham
093bd35798 [1.8.x] Fixed typo in SelectDateWidget docs.
Backport of f46f1737aa456c1dc377e3f1f4d307d52d8598af from master
2015-07-15 09:57:19 -04:00
Cesar Canassa
83b32422aa [1.8.x] Fixed #25123 -- Corrected makemessages --extension help text
Backport of 561c018d88203826cb9fd370e03a28e829871b75 from master
2015-07-14 07:36:17 -04:00
Tim Graham
8c64c971e5 [1.8.x] Added 1.4.22 release notes.
Backport of 427a49f9e996d5d7712472ce287b80857086ee02 from master
2015-07-14 07:27:59 -04:00
Tim Graham
2b4f1f9953 [1.8.x] Fixed #25121 -- Added a warning that filtering sensitive information from error reporting isn't bulletproof
Backport of 84bc4f6cddfcb5fedc7586644d66d025476255ad from master
2015-07-14 07:14:18 -04:00
Daniel Roseman
4cc0baa98e [1.8.x] Fixed #25079 -- Added warning if both TEMPLATES and TEMPLATE_* settings are defined.
Django ignores the value of the TEMPLATE_* settings if TEMPLATES is also
set, which is confusing for users following older tutorials. This change
adds a system check that warns if any of the TEMPLATE_* settings have
changed from their defaults but the TEMPLATES dict is also non-empty.

Removed the TEMPLATE_DIRS from the test settings file; this was marked
for removal in 1.10 but no tests fail if it is removed now.

Backport of 24620d71f2116da31abe6c9391f7bc807ac23c0b from master
2015-07-13 17:55:19 -04:00
Yosuke Yasuda
269315d81a [1.8.x] Fixed #25108 -- Fixed a test which failed on Pillow 2.9+
Backport of a2b999dfcac9bc92513a36ec6b3033ded1561c66 from master
2015-07-13 14:59:02 -04:00
Chris McCollister
f8140c4679 [1.8.x] Fixed #24984 -- Added link to Jinja2 static tag instructions in staticfiles docs.
Backport of d62194a260eedd30aeea78f407032aabfde4be70 from master
2015-07-13 07:38:42 -04:00
Matthew Madurski
cdae9d8cae [1.8.x] Fixed #25103 -- Corrected versionadded for FileResponse
Backport of 0b02ce54cf58f96811a625245e374e6cd10e28af from master
2015-07-10 13:48:48 -04:00
Tim Graham
ad3a895432 [1.8.x] Fixed #25082 -- Documented where to register system checks.
Backport of 074a82f49b1443e66885ea861bbd2d2cb04af43e from master
2015-07-10 10:38:38 -04:00
Nick Sweeting
2733c32ba9 [1.8.x] Fixed #25083 -- Added SessionAuthenticationMiddleware to auth installation docs
Backport of f0857c09fb51b21afb3e55da53bce962466af6d3 from master
2015-07-10 08:41:18 -04:00
Lukas Hetzenecker
ebcfedb0e5 [1.8.x] Fixed #25019 -- Added UUID support in DjangoJSONEncoder
Backport of 6355a6d4f5 and 2e05ef4e18 from master.
2015-07-10 09:02:14 +02:00
Claude Paroz
0db2cdb1fa [1.8.x] Added stub release notes for 1.8.4
Backport of 846cb6fef7 from master.
2015-07-10 08:52:46 +02:00
Tim Graham
340c410d58 [1.8.x] Fixed #25048 -- Documented that runservers strips headers with underscores.
refs 316b8d49746933d1845d600314b002d9b64d3e3d

Backport of 7b6d3104f263d9483982928604b2e51f06126ec1 from master
2015-07-09 09:11:02 -04:00
Tim Graham
fe367db35f [1.8.x] Post-release version bump. 2015-07-08 16:00:59 -04:00
Tim Graham
4217f1cdeb [1.8.x] Bumped version for 1.8.3 release. 2015-07-08 15:23:19 -04:00
Shai Berger
8f9a4d3a2b [1.8.x] Fixed catastrophic backtracking in URLValidator.
Thanks João Silva for reporting the problem and Tim Graham for finding the
problematic RE and for review.

This is a security fix; disclosure to follow shortly.
2015-07-08 15:23:19 -04:00
Tim Graham
574dd5e0b0 [1.8.x] Prevented newlines from being accepted in some validators.
This is a security fix; disclosure to follow shortly.

Thanks to Sjoerd Job Postmus for the report and draft patch.
2015-07-08 15:23:18 -04:00
Carl Meyer
66d12d1aba [1.8.x] Fixed #19324 -- Avoided creating a session record when loading the session.
The session record is now only created if/when the session is modified. This
prevents a potential DoS via creation of many empty session records.

This is a security fix; disclosure to follow shortly.
2015-07-08 15:23:18 -04:00
Tim Graham
64e8a5f1bb [1.8.x] Added security release note stubs. 2015-07-08 15:23:18 -04:00
Tim Graham
2dbef35714 [1.8.x] Removed a confusing sentence in tutorial 5.
Backport of bdfce4db21d3a414dac4e7cd874fae655ce142de from master
2015-07-08 15:12:24 -04:00
Luke Plant
5e1fa14006 [1.8.x] Corrected example code for get_query_set upgrade in 1.6 release notes
The conditional setting of `get_query_set` is required for correct behaviour
if running Django 1.8. The full gory details are here:

http://lukeplant.me.uk/blog/posts/handling-django%27s-get_query_set-rename-is-hard/

Backport of f87e552d9842ff9591a9c51ebdb5f96e4dd54b00 from master
2015-07-08 11:05:37 +01:00
Chris Bainbridge
b252e0f350 [1.8.x] Refs #23882 -- Added detection for moved files when using inotify polling
Commit 15f82c7 ("used pyinotify as change detection system when
available") introduced a regression where editing a file in vim with
default settings (writebackup=auto) no longer causes the dev server
to be restarted. On a write, vim moves the monitored file to a backup
path and then creates a new file in the original. The new file is not
monitored as it has a different inode. Fixed this by also watching for
inotify events IN_DELETE_SELF and IN_MOVE_SELF.

Backport of e5cfa394d79b6ab1b412bd3b30c6a433b415d56b from master
2015-07-07 12:26:36 -04:00
Andriy Sokolovskiy
6840aaf3c1 [1.8.x] Replaced try..except blocks by context manager in custom lookups tests
Backport of 13dca01af02e91f25ae1d96b09b857993714c96d from master
2015-07-07 12:04:21 -04:00
Alexey Sveshnikov
8c417564c7 [1.8.x] Fixed #25059 -- Allowed Punycode TLDs in URLValidator
Backport of bc98bc56a52860688ea0ae2ec7b9e59ddb72a811 from master
2015-07-06 15:11:43 -04:00
Tim Graham
73cbf08159 [1.8.x] Fixed #25051 -- Clarified return type of {% now %} tag.
Backport of a871cf422d8f7a15d3029684538136e0c92f99dc from master
2015-07-04 08:49:05 -04:00
Luke
e2acbfb69b [1.8.x] Fixed mistake in Model.from_db() example.
Backport of fd869cceacafdaf2c5865cc525f88357b6a26aad from master
2015-07-03 09:09:38 -04:00
Michael Manfre
342074f4a4 [1.8.x] Fixed #25055 -- Made m2m long name testing friendlier for 3rd party databases.
Backport of f9c3587b51487179cf3fb92b509790f4610d6012 from master
2015-07-03 09:00:36 -04:00
Tim Graham
cb3e9bc0d7 [1.8.x] Fixed #25056 -- Documented minimum version of jinja2 for testing.
Backport of ca58181bac5366d3a1fb44e1b49fe9e365095138 from master
2015-07-03 08:22:34 -04:00
Tim Graham
92e1ace575 [1.8.x] Backported .gitignore and .hgignore from master. 2015-07-01 10:31:13 -04:00
Tim Graham
08b0b81a6a [1.8.x] Fixed #25041 -- Clarified difference between syncdb and migrate. 2015-07-01 10:15:29 -04:00
Claude Paroz
805e5b88e0 [1.8.x] Fixed typo in writing migrations docs
Backport of 3d7a713156 from master.
2015-07-01 09:17:10 +02:00
Marten Kenbeek
42aa919de9 [1.8.x] Refs #23621 -- Fixed warning message when reloading models.
Backport of aabb58428beae0bd34f32e5d620a82486b670499 from master
2015-06-30 15:01:22 -04:00
Tim Graham
fdaf9359ab [1.8.x] Fixed #25038 -- Reverted incorrect documentation about inspectdb introspecting views.
This reverts commit e69eea73d94c058728143416058a6257c765a9b8 (refs #24177).
2015-06-30 14:25:45 -04:00
Tim Graham
8922266a8d [1.8.x] Fixed #25033 -- Added context_processors.auth to documented admin dependencies.
Backport of f59667c121272ba7a1161e8bc4787654d929f6f1 from master
2015-06-27 14:27:28 -04:00
Noam
fd61ce3817 [1.8.x] Fixed #25031 -- Fixed a regression in the unordered_list template filter.
Backport of e291fc4757e952fd4f663d88adca416b016db13e from master
2015-06-27 09:39:29 -04:00
Jason Hoos
4296801463 [1.8.x] Fixed #24958 -- Fixed inline forms using UUID-PK parents with auto-PK children.
Backport of a50b66da30320887c23c73927f6b2ab41e0301bf from master
2015-06-26 09:15:59 -04:00
薛丞宏
a97e50c5e6 [1.8.x] Fixed #25016 -- Reallowed non-ASCII values for ForeignKey.related_name on Python 3.
Backport of d3e12c901777697b7bf08b25e2dd46f0b951db8c from master
2015-06-26 08:35:13 -04:00
Marten Kenbeek
ae93aeed2b [1.8.x] Refs #24127 -- Added documentation for HttpRequest.current_app.
Backport of 6364df68879efc0d9451d6427e34b4542e3d7e0b from master
2015-06-25 14:11:16 -04:00
Tim Graham
ae1d663b79 [1.8.x] Renamed RemovedInDjango20Warning to RemovedInDjango110Warning. 2015-06-23 07:22:16 -04:00
Wim Feijen
7439039806 [1.8.x] Updated indentation of example template in docs/topics/i18n/translation.txt.
Backport of 514b69cb9e1ec08f22f04a6a2ed29b130cb42258 from master
2015-06-22 15:42:30 -04:00
Tim Graham
252867ed2a [1.8.x] Fixed #25001 -- Doc'd caveat about collectstatic and removing INSTALLED_APPS.
Thanks aRkadeFR for the initial patch.

Backport of 5ae0dd6abf8f93b90c962e62b04c675fdd6ca755 from master
2015-06-22 12:44:34 -04:00
Tim Graham
bb8f69e901 [1.8.x] Simplified wording of Python support policy.
Backport of 256aebbdaad1a82ae55fc2e59df9064cb90a61c3 from master
2015-06-22 12:20:20 -04:00
Bipin Suresh
6aa618bae3 [1.8.x] Fixed #24983 -- Clarified contrib.sites Site.domain is fully qualified.
Backport of 34047b23e284fd3459903294a5776b67c3e33ed9 from master
2015-06-22 09:41:18 -04:00
Tim Graham
5cc1f13d15 [1.8.x] Fixed #25010 -- Documented APP_DIRS default in startproject's settings.py
Backport of 4a6656488893b6a832726cade2d2c5aa04f85ae2 from master
2015-06-20 19:32:40 -04:00
Markus Holtermann
f64a3de2d4 [1.8.x] Fixed #24940 -- Made model managers hashable
Thanks Federico Jaramillo Martínez for the report and Tim Graham for the
test and review.

Backport of d3d66d47222dd8765a20a15fdc754c0ed7635404 from master
2015-06-19 19:15:01 +02:00
johannes.linke
aa00f48280 [1.8.x] Fixed #24881 -- Clarified Meta.order_with_respect_to documentation
Backport of 27c839e0fce99254ad61322bb827a821f832e840 from master
2015-06-19 07:03:16 -04:00
Tim Graham
f501f4d41c [1.8.x] Added Python version support policy
Partial backport of 7f1168e387dc1db70b6093cfd23a4a6978f48109 from master
2015-06-18 12:23:46 -04:00
Tim Graham
ac518c8722 [1.8.x] Fixed outdated Python version support info in docs/topics/install.txt
Backport of ebd183a18cc334e3ac57efd8e4ec09c3954196a9 from master
2015-06-17 11:28:48 -04:00
Tim Graham
9d5c45beae [1.8.x] Removed usage of string-based url() in auth docs.
Backport of 58665dded006a4bbb9789e92cd280265a4f3dee8 from master
2015-06-17 09:46:15 -04:00
Andriy Sokolovskiy
8abe2d0643 [1.8.x] Fixed #24948 -- Fixed crash when uploading bitmap images in forms.ImageField
Backport of cf6ce279c7671a4c83c960c5c526f92679a4fac8 from master
2015-06-16 14:38:25 -04:00
Tim Graham
8050e6282e [1.8.x] Refs #24987 -- Documented that Client.login() rejects inactive users.
Backport of fbc618c13cc72b9c2f4c8dfd5ef8b8ab5a5d7caa from master
2015-06-16 12:47:27 -04:00
Adam Brenecki
0e3a80fa68 [1.8.x] Fixed #24972 -- Fixed removing unique_together indexes on MySQL.
Backport of 65296b3be376e9cd25216b6ad2b1758b03765781 from master
2015-06-15 17:32:07 -04:00
Brian King
c58755d875 [1.8.x] Fixed #24912 -- Fixed prefetch_related failure for UUIDField primary keys
This resolves a problem on databases besides PostgreSQL when using
prefetch_related with a source model that uses a UUID primary key.

Backport of bfb5b7150ff52571a7a3cf10e0dd0d1dbd45c4b5 from master
2015-06-15 17:31:50 -04:00
Tim Graham
062ce508b0 [1.8.x] Fixed flake8 warnings on Python 3.
Backport of 47fcbe506c04019a12e16221843e25a52249b1ab from master
2015-06-15 13:01:41 -04:00
Tim Graham
53323a5c23 [1.8.x] Removed obsolete literals_to_xrefs.py script.
Backport of ccfb5c74083ac565c66a2d0cfe11e60e7d1c8337 from master
2015-06-15 13:01:32 -04:00
Tim Graham
737ddb4d24 [1.8.x] Added ALLOWED_HOSTS and SERVER_EMAIL details to deployment checklist.
Backport of b34d16b78df3b424c3fae4f0b30b6b7a2cbf4543 from master
2015-06-11 13:44:23 -04:00
Nick Smith
ffbb6d4742 [1.8.x] Used PEP 8 style indentation in forms docs.
Backport of b9bf61ce61ea933c3fefa05fa1ded8dfb1b445e5 from master
2015-06-11 12:22:24 -04:00
Rivo Laks
76c526f80e [1.8.x] Fixed #24769 -- Cast optparse verbosity argument to an integer for better backwards compatibility.
Using `BaseCommand.options_list` makes Django use the legacy optparse
parser, which does not set the verbosity attribute correctly. Now the
verbosity argument is always cast to int. Regression in 8568638 (#19973).

Initial report and patch from blueyed.

Backport of a0047c6242fd48068eb444e0a58f7a5d2bc1bcd3 from master
2015-06-09 19:05:16 -04:00
Tim Graham
8bc18ebf0f [1.8.x] Fixed #24903 -- Fixed assertRaisesMessage on Python 2.7.10.
A regression in Python 2.7.10 rc1 wasn't reverted in the final
release: https://bugs.python.org/issue24134

Backport of two commits from master:
* c2bc1cefdcbbf074408f4a4cace88b315cf9d652
* e89c3a46035e9fe17c373a6c9cd63b9fd631d596
2015-06-09 17:54:33 -04:00
Daniel Roseman
b3f61f6e08 [1.8.x] Fixed #24961 -- Added links to all auth docs pages from index.
Backport of fd0949181f993fb8a15c5b0128840f71ee1d7b0e from master
2015-06-09 12:44:07 -04:00
argaen
f85780ada0 [1.8.x] Fixed import in docs/ref/contrib/syndication.txt
Backport of 1725d009918e7d37390d5abd34034f3defca5fc3 from master
2015-06-09 12:37:54 -04:00
Matt Deacalion Stevens
7ae470cfe2 [1.8.x] Clarified the default form widgets for model number fields in docs
Backport of 77f3d7adb1d56d4eb5d22a85e8d383602f937790 from master
2015-06-09 12:33:37 -04:00
Nik Nyby
1e0a5b796c [1.8.x] Fixed typos in docs/topics/python3.txt
Backport of f67127e0af396e9039038a9e5539425851cf95c4 from master
2015-06-09 10:37:49 -04:00
Tim Graham
9cf5c4dcff [1.8.x] Fixed #24956 -- Fixed typo in docs/ref/forms/widgets.txt
Backport of 9f825b9e28547b1310526c9be9fca9e6dbcd57e7 from master
2015-06-08 15:20:32 -04:00
Alasdair Nicol
a22a1b3e23 [1.8.x] Fixed #24952 -- Fixed example SQL in Func() expressions docs
Backport of 1f5b067710a6bc97848b1caff0e2a685c2489868 from master
2015-06-08 10:56:46 -04:00
Tomasz Kontusz
b62dc60c98 [1.8.x] Fixed ImportError message in utils.module_loading.import_string()
Backport of c2b4967e76fd671e6199e4dd54d2a2c1f096b8eb from master
2015-06-06 11:55:56 -04:00
Andriy Sokolovskiy
66496c8403 [1.8.x] Added missing tests for transforms usage with subquery for PostgreSQL fields
Backport of 2a7c59cd885b4c9f0584015c34c17c9ebca6d417 from master
2015-06-06 09:12:07 -04:00
Andriy Sokolovskiy
b4b13759f8 [1.8.x] Fixed #24744 - Fixed relabeled_clone for the Transform
Backport of 08232ef84d4959826ad5136f183c9fc5bedf0599 from master
2015-06-06 09:11:46 -04:00
Mark Henwood
f4c09d3e42 [1.8.x] Fixed #24882 -- Documented Migration.run_before
Backport of dee1bcd08a013ba5ffd8d1ec9b6628702f755066 from master
2015-06-06 09:00:36 -04:00
Mark Lavin
0cfb7ed5c5 [1.8.x] Fixed #24924 -- Join promotion for multiple Case expressions
Backport of 541f4ea546ad3065852db816769ba6b584e3f373 from master
2015-06-05 12:23:08 -04:00
Andriy Sokolovskiy
469f1e362b [1.8.x] Fixed #24833 -- Fixed Case expressions with exclude(). 2015-06-05 11:03:41 -04:00
Yamila Moreno
7dcfbb2ef3 [1.8.x] Fixed #22571 -- Added clarification about auto_now_add=True
Backport of cbe4efcbc13ad402bf1f1a94b02a8ec93f20327d from master
2015-06-05 10:04:24 -04:00
Tim Graham
a1d8a205bc [1.8.x] Capitalized "Python" in docs.
Backport of 2fbea621e68d3365679e45fa17b61d06aa8cdf76 from master
2015-06-05 08:38:43 -04:00
Ian Foote
8d33889422 [1.8.x] Fixed #24925 -- Document using Coalesce on MySQL
Add warning for using Coalesce with python values on MySQL and document
workaround.

Backport of 14dead04acf4ac877d0f4025f142fe9e872ce8ac from master
2015-06-05 08:25:37 -04:00
Alasdair Nicol
2aa65460d5 [1.8.x] Removed comment from Form.changed_data; refs #24191
Backport of 5987b3c46d5a6948737627d294d95ed54d49eae6 from master
2015-06-04 13:52:25 -04:00
Alasdair Nicol
cccb7b49dc [1.8.x] Fixed #24191 -- Documented Form.changed_data
Thanks rhertzog and Björn Påhlsson for the suggestion.

Backport of 5c98223f39e5cf92c603a08e7ed70d57e565a5a3 from master
2015-06-04 13:52:15 -04:00
Carl Meyer
2358c1e5d7 [1.8.x] Cleaned up docstring style, per Tim Graham review.
Backport of 57dbc87ade5533d78089690ec7795034ff69177a from master.
2015-06-03 19:21:23 -06:00
Carl Meyer
feed5ad2a0 [1.8.x] Refs #24628 -- Added a second test and a docstring comment to avoid regression.
Backport of 5c085ea7b3f3ff10389aeed327e018581791876a from master.
2015-06-03 15:48:53 -06:00
Tim Graham
f082813d67 [1.8.x] Fixed typo in runtests.py vendor check. 2015-06-03 12:22:39 -04:00
Tim Graham
2009525c8b [1.8.x] Applied db_table conversion to fix schema tests on Oracle.
Backport of 7c637a3aaec311269bf863c220bf894eebbe7c7c from master
2015-06-02 19:45:24 -04:00
Carl Meyer
efdcd13c34 [1.8.x] Fixed #24628 -- Fixed applied status for squashed migrations.
Backport of 492537ac18df56c36f8a2335d773aa0fa01a61a3 from master.
2015-06-02 16:21:58 -06:00
Carl Meyer
c37c6dc410 [1.8.x] Improved isolation of applied-migrations table in migration tests.
Backport of 335fc44f6872f4678e48f65e91961ef19d6439b4 from master.
2015-06-02 16:21:03 -06:00
Tim Graham
de62c77460 [1.8.x] Added headings to i18n template tags and filters.
Backport of 9ca0961b8a4a6a5ff3ee903f71fd22e1936d004f from master
2015-06-02 15:51:26 -04:00
Carl Meyer
98b40ffe61 [1.8.x] Fixed #24895 -- Fixed loading a pair of squashed migrations with a dependency.
Backport of 84522c0d165076d01cd034d7c381b75044daec8d from master.
2015-06-02 12:10:04 -06:00
zauddelig
7f92b6e576 [1.8.x] Fixed #24897 -- Allowed using choices longer than 1 day with DurationField
Backport of 262d4db8c4c849b0fdd84550fb96472446cf90df from master
2015-06-02 12:42:31 -04:00
Andriy Sokolovskiy
9d83de8ff3 [1.8.x] Fixed #24831 -- Fixed pickling queryset with prefetch_related() after deleting objects.
Backport of 2913d6b77d8b2082dc79df5503b7dd3ddd05fcc1 from master
2015-06-02 10:07:45 -04:00
Tim Graham
1c57d7e7fa [1.8.x] Fixed #24893 -- Fixed lack of unique constraint when changing a field from primary_key=True to unique=True
Backport of e1e6399c2ce39a3656155c4d704340eac83926a7 from master
2015-06-02 09:32:22 -04:00
Tim Graham
8911d2e20f [1.8.x] Fixed #24892 -- Fixed quoting of SQL when renaming a field to AutoField in PostgreSQL
Backport of 5ab86809832726957dd6f0eb8e17a461f0a9be84 from master
2015-06-02 09:15:08 -04:00
Simeon J Morgan
3b41850adc [1.8.x] Fixed #24896 -- Doc'd clickjacking protection doesn't overwrite X-Frame-Options header.
Backport of 0b5fb8e72c74e41d250f35c8c3df3f3a13d367f3 from master
2015-06-02 09:02:46 -04:00
Maximiliano
aefa3a6a03 [1.8.x] Simplified wording in QuerySet.update() docs.
Backport of bf07ba523a9846fa9820b87321ef4222fed98e8c from master
2015-06-01 09:42:53 -04:00
Przemysław Suliga
52b5890f52 [1.8.x] Fixed #24880 -- Added more explicit docs on select_for_update() on SQLite.
Backport of d29ed3f355b0c57e7036807f1d54f33796d8d820 from master
2015-06-01 08:53:59 -04:00
Tim Graham
b8dce1af3a [1.8.x] Refs #24811 -- Fixed syntax error in CREATE EXTENSION example query.
Backport of c954931abd17f8efaa6b7662ac2916dbf47d2978 from master
2015-05-31 06:24:36 -04:00
Tim Graham
2456276b02 [1.8.x] Fixed #24851 -- Fixed crash with reverse one-to-one relation in ModelAdmin.list_display 2015-05-28 10:37:31 -04:00
Andriy Sokolovskiy
f65d4db8a8 [1.8.x] Fixed #24817 -- Prevented loss of null info in MySQL field renaming.
Backport of 80ad5472ce4b6ba6e94227422d0727371e97cdf0 from master
2015-05-28 10:08:14 -04:00
Tim Graham
df6a4cac52 [1.8.x] Refs #24853 -- Documented a limitation of RunPython and unmigrated apps. 2015-05-27 14:21:57 -04:00
Paweł Marczewski
7ee6043dba Fixed #24847 -- Prevented items set on a RequestContext from being lost.
Backport of 300e8baf9429dbf1c5dff478558d793638dc2f54 from master
2015-05-27 10:08:31 -04:00
Kevin Marsh
d411586866 [1.8.x] Removed unused import in example code in docs/topics/auth/default.txt
Backport of 10945ebeb84157a284ad96f453ee13305a9d8a94 from master
2015-05-27 09:41:22 -04:00
Tim Graham
b16f84f15b [1.8.x] Refs #24836 -- Reverted "Simplified the lazy CSRF token implementation in csrf context processor."
This reverts commit 8099d33b6553c9ee7de779ae9d191a1bf22adbda as it caused
a regression that cannot be solved without changing force_text() which has
a small risk of introducing regressions. This change will remain in master
along with an update to force_text().
2015-05-27 09:29:45 -04:00
I am Clinton
1e3741b8a3 [1.8.x] Fixed typos in docs/ref/forms/widgets.txt
Backport of 14f20c1fdc894dd348ec6a43eb4e0c5dd854d902 from master
2015-05-26 10:48:37 -04:00
Andrea Grandi
62c19a21b6 Fixed #24844 -- Corrected has_changed implementation for HStoreField.
Backport of 43b2d88a5b9cfb151ccf7ac861f2750e70c0e2c4 from master
2015-05-25 21:10:07 -04:00
Paweł Marczewski
2aa2b9f291 [1.8.x] Fixed #24835 -- Fixed QuerySet.exists() after an annotation with Count()
QuerySet.exists() incorrectly handled query.group_by = True
case (grouping by all select fields), causing GROUP BY
expressions to be wiped along with select fields.

Backport of 801a84ae329a24d9adf01b700429fe8f1285b2b8 from master
2015-05-25 20:47:28 -04:00
Marten Kenbeek
1ac4c7d415 [1.8.x] Fixed #24848 -- Fixed ValueError for faulty migrations module.
Added apps to unmigrated apps if the migrations module is a file
or a folder missing __init__.py.

Thanks to Ernest0x for the bug report.

Backport of d73176a84273c06fa11075c65293ec28497a8423 from master
2015-05-25 13:56:37 -04:00
I am Clinton
122e688a9c [1.8.x] Minor edits to docs/ref/forms/validation.txt
Backport of 73b5b0b4a5989f159c6dadcb670ab30b01402382 from master
2015-05-25 13:19:54 -04:00
Villiers Strauss
4311fd2c0a [1.8.x] Fixed #24841 -- Made BaseRangeField.prepare_value() call base_field's prepare_value()
Backport of 614bec41b5306b32b8de20d66f047ff8d6f35256 from master
2015-05-25 12:07:25 -04:00
I am Clinton
1f33bf78fd [1.8.x] Fixed typos in docs/ref/forms/fields.txt
Backport of a6b77abff75709ee09a0d31d450af601f1f806d9 from master
2015-05-25 10:50:33 -04:00
I am Clinton
87934c4b68 [1.8.x] Fixed typos in HTTP decorator docs.
Backport of 0b0bb6100d90d387d7f38e87a4051a1ef513b7c7 from master
2015-05-25 07:39:06 -04:00
Tim Graham
9def46c1c3 [1.8.x] Fixed #24811 -- Added details on installing PostgreSQL extensions.
Backport of 9ef2615d4968ed52dbd88a19f03746a2f16c7511 from master
2015-05-23 21:36:17 -04:00
Claude Paroz
0bfe322bac [1.8.x] Fixed #24826 -- Accounted for filesystem-dependent filename max length
Thanks Raphaël Hertzog for the report and help on the patch, and Tim Graham
for the review.

Backport of 170f7115bbae45f26ca8078e749dfe67445a57ea from master
2015-05-23 14:58:03 -04:00
I am Clinton
ae03d1ac5b [1.8.x] Fixed mistakes in docs/topics/forms/formsets.txt examples.
Backport of 9c8a2ab81db1fa999862034d9e8e9e1d091a72e5 from master
2015-05-22 11:29:49 -04:00
Tim Graham
6b339b5c84 [1.8.x] Fixed #24839 -- Removed references to deprecated contrib.webdesign.
Backport of e11a08ee155811e5f0b2a13640178f82c928c4e7 from master
2015-05-22 09:40:01 -04:00
Tim Graham
f7401b6bb0 [1.8.x] Fixed typo in docs/topics/auth/default.txt
Backport of 00d763a4fbc1c1a0b3729afad1d0109b6ea90e13 from master
2015-05-22 06:51:26 -04:00
Laurent Peuch
27fdd45620 [1.8.x] Enhanced registration/login.html example template.
Backport of 1369da676f3bd83d694ca5f00c5012f16b007acb from master
2015-05-21 20:46:07 -04:00
I am Clinton
6260ae7015 [1.8.x] Cosmetic edits and minor fixes to docs/ref/contrib/admin/index.txt
Backport of 32f0c8f79697391e7067f1479045aa910ffa2c4e from master
2015-05-21 20:24:06 -04:00
Andrei Kulakov
5a0e39b2d5 [1.8.x] Fixed #24813 -- Documented {% include %} debug behavior variance
Backport of fc3409b0932959f2aca42715e9147113d0e40f79 from master
2015-05-21 19:52:32 -04:00
garwoodpr
d3a8ce7658 [1.8.x] Cosmetic edits and minor corrections to docs/ref/django-admin.txt.
Backport of 99ec80f84a826b68cb7c09c662e411314f7c9b8c from master
2015-05-21 19:20:31 -04:00
garwoodpr
4c13140553 [1.8.x] Cosmetic edits and minor corrections to docs/ref/settings.txt.
Backport of 5edf25bdddab24966d8597d17d841cb9c05274c9 from master
2015-05-21 19:06:33 -04:00
Tim Graham
4bf6f55cc6 [1.8.x] Added stub release notes for 1.8.3.
Backport of 7b8008a078ffdfd18ebbe78fecbb92cdddf2f304 from master
2015-05-20 14:18:35 -04:00
Tim Graham
20e7e77ef7 [1.8.x] Post-release version bump. 2015-05-20 14:10:05 -04:00
Tim Graham
1d3d733a10 Bumped version for 1.8.2 release 2015-05-20 13:49:57 -04:00
Tim Graham
2cf7b26c84 [1.8.x] Added release date for 1.8.2.
Backport of ebe994a42ce92bb82a4e421c7c817d44747088a3 from master
2015-05-20 13:49:44 -04:00
Tim Graham
31cb25adec [1.8.x] Fixed incorrect session.flush() in cached_db session backend.
This is a security fix; disclosure to follow shortly.

Thanks Sam Cooke for the report and draft patch.
2015-05-20 13:49:07 -04:00
Simon Charette
2b2a2157d0 [1.8.x] Refs #24652 -- Made sure template backend tests call their super setUpClass.
Backport of ead36e8a471389a6032d825c8245245ebb89ea5d from master
2015-05-20 13:32:36 -04:00
Simon Charette
3ab3be4b5d [1.8.x] Refs #24652 -- Converted a template test to avoid executing queries.
Backport of 8bf1449edb4139451643e3823b194b4c02ca7633 from master
2015-05-20 13:32:35 -04:00
Simon Charette
e846ea0649 [1.8.x] Refs #24652 -- Enforced test isolation in file_storage tests.
Backport of 3db21c351b9b1108954c388799d35c8dad7dfc19 from master
2015-05-20 13:32:35 -04:00
Tim Graham
525fd2f405 [1.8.x] Fixed typo in file_storage tests.
Backport of e2b77aceddbda9071fcfc38f90fb50d091d0b5fc from master
2015-05-20 13:06:10 -04:00
Anssi Kääriäinen
db65660928 [1.8.x] Fixed #24705 -- Fixed negated Q objects in expressions.
Avoided split_exclude() for Q when used as an expression.

Backport of bc87061a3c7c8d6b4d2469f35cc78683c6cff647 from master
2015-05-20 09:41:42 -04:00
latyas(懒)
63d60dfe29 [1.8.x] Fixed typo in docs/ref/contrib/admin/index.txt
Backport of 8b106cfaa07dc04ad27a1a90c1eb03af80111695 from master
2015-05-20 08:16:36 -04:00
Tim Graham
aeafdf9398 [1.8.x] Fixed #24784 -- Fixed visibility regression in admin's FK widget.
Backport of fb94e7b8cf8f68629b51a4d4f2c37400ef1c7469 from master
2015-05-19 21:27:57 -04:00
I am Clinton
b261ab2e43 [1.8.x] Made minor edits to docs/intro/tutorial01.text
Backport of f3b51f51931d42cbba8a18e34d0aaee1b2f085bc from master
2015-05-19 12:33:38 -04:00
Claude Paroz
7915cbb360 [1.8.x] Fixed #24739 -- Documented translation fallback change
Refs #24503.
Backport of 1046c8afec from master.
2015-05-18 18:41:39 +02:00
Tim Graham
02a4bf7105 [1.8.x] Added docs for assertRaisesMessage as context manager.
Backport of a0175724b086127a4e13612042961d3ba88d6bd9 from master
2015-05-18 10:16:14 -04:00
Tim Graham
3c0e03ef42 [1.8.x] Fixed #24812 -- Fixed app registry RuntimeWarnings in schema and migrations tests.
Backport of f5da4380723c93998a4f5a845b6f26fa51a2cfe1 from master
2015-05-18 10:14:57 -04:00
I am Clinton
436f914dc5 [1.8.x] Fixed typos in docs/ref/request-response.txt
Backport of e4f0e5a981e1965bd6b6b5d51f87499fa5f780b3 from master
2015-05-18 09:46:09 -04:00
Tim Graham
cc4ee06279 [1.8.x] Fixed #24630 -- Clarified docs about RunPython transactions.
Thanks Markus Holtermann for review.

Backport of 307acc745a4e655c35db96f96ceb4b87597dee49 from master
2015-05-17 18:51:40 -04:00
Tim Graham
6108febe2a [1.8.x] Fixed typo in docs/topics/http/sessions.txt
Backport of fc1eea59c0c09b306f0391735491fa43cbed4d7a from master
2015-05-17 18:37:03 -04:00
Claude Paroz
cdf7f90f95 [1.8.x] Fixed #24791 -- Added fallback when 'postgres' database isn't available
Thanks Carl Meyer and Tim Graham for the reviews.
Backport of 322605035 from master.
2015-05-15 18:46:05 +02:00
Bo Lopker
3c659856eb [1.8.x] Fixed #24799 -- Fixed session cookie deletion when using SESSION_COOKIE_DOMAIN
Backport of 2dee853ed4def42b7ef1b3b472b395055543cc00 from master
2015-05-15 11:24:18 -04:00
Claude Paroz
6a0d9f068f [1.8.x] Fixed #24757 -- Recreated MySQL index when needed during combined index removal
Thanks Thomas Recouvreux for the report and Tim Graham for the tests and
review.
Backport of ae635cc36 from master.
2015-05-15 17:08:49 +02:00
Tim Graham
30e5703844 [1.8.x] Fixed #24802 -- Delayed GDAL check for OSMGeoAdmin
Backport of a37dcfd0a38cff24eb4fb5e3858791aa5428c853 from master
2015-05-15 09:20:04 -04:00
I am Clinton
f19932591b [1.8.x] Minor edits to docs/topics/http/urls.txt
Backport of dce004ab72e26103a86e98994de7f2cef9321f9b from master
2015-05-14 19:32:27 -04:00
Tim Graham
df0674eabb [1.8.x] Fixed #24751 -- Fixed HStoreField isnull lookup.
Backport of 3c8fe5dddf34533a419d2deed5208a28de32cb4a from master
2015-05-13 10:34:15 -04:00
Tim Graham
7ea6477b3a [1.8.x] Refs #24743 -- Clarified migrations performance note in 1.8.1 release notes.
Backport of 81d4ce4a6d21f0e65cabb253927770b3616cb560 from master
2015-05-13 10:16:49 -04:00
Piotr Jakimiak
6483f133bc [1.8.x] Fixed broken link in settings docs
Backport of ca51c559154fe11008c6b59d908e1c957c30cac6 from master
2015-05-13 07:02:27 -04:00
Charles Dee Rice
e4fa298e30 [1.8.x] Fixed #24789 -- Fixed wrong positional args order in doc example
Arguments shown in example code (signal, sender, instance) appeared to
be the incorrect positional arguments for a post_save signal (which
might start as: sender, instance, created), as documented:
​https://docs.djangoproject.com/en/1.8/ref/signals/#post-save

Backport of 4f3c44424187de20d7f75fdde6624b9f683a9cf2 from master.
2015-05-13 10:27:18 +02:00
Abhaya Agarwal
290c9d6654 [1.8.x] Fixed #24698, #24712 -- Added ForeignKey.get_db_prep_value()
Fixed crashes with ForeignKey to UUIDField and inheritance with UUIDField
primary keys.
2015-05-12 19:37:37 -04:00
I am Clinton
3ad1074cf9 [1.8.x] Light edits to docs/topics/forms/index.txt
Backport of ec74dba2ab3f04fb828c0b926b49f63ec8486dd8 from master
2015-05-12 09:17:14 -04:00
Anssi Kääriäinen
d5ce2dd7bc [1.8.x] Fixed #24748 -- Fixed incorrect GROUP BY on MySQL in some queries
When the query's model had a self-referential foreign key, the
compiler.get_group_by() code incorrectly used the self-referential
foreign key's column (for example parent_id) as GROUP BY clause
when it should have used the model's primary key column (id).

Backport of adc57632bc26cc8fe42bdb6aff463f883214980a from master
2015-05-11 11:52:14 -04:00
Anssi Kääriäinen
056a91dbfa [1.8.x] Fixed #24766 -- Added join promotion for Case expressions
Backport of be9d645346a20a6c394bf70d47b1b1d5c81ff530 from master
2015-05-11 11:17:37 -04:00
Tim Graham
d3a8f36fdb [1.8.x] Fixed #24780 -- Removed outdated discussion of signals and custom users.
Backport of 8e86d9d3dfd68bebbfd1dd5006e0c25696855269 from master
2015-05-11 09:10:44 -04:00
Ian Foote
e7b703d050 [1.8.x] Fixed typo in docs/topics/testing/tools.txt
Backport of c21b832c1260c6ad4bd8527338a65f6d8930feaf from master
2015-05-09 18:06:38 -04:00
Tim Graham
6a7b27c743 [1.8.x] Fixed #24758 -- Corrected Options.get_fields() docstring.
Backport of b99114f67f0e5eba3b1d31641906b75a14fd2fa0 from master
2015-05-08 13:19:32 -04:00
David Krisch
51ebc8805e [1.8.x] Fixed #24763 -- Moved DoesNotExist exception to model docs.
Backport of 1a62f197078eae72eba85f23aabacc06ad4c7d79 from master
2015-05-08 13:13:45 -04:00
Ian Foote
eb534f6412 [1.8.x] Fixed typo in docs/ref/models/expressions.txt
Backport of 756a7272529bb014b9543f4a169e9c8abd2a0a4b from master
2015-05-07 20:15:47 -04:00
Michael Blatherwick
9116a3c591 [1.8.x] Fixed typo in 1.8 release notes.
Backport of 3baebf52aa0850de3ebadcbe1eda7e6e9a2c6c44 from master
2015-05-07 08:53:24 -04:00
Tim Graham
39ed6d960e [1.8.x] Fixed #24750 -- Updated two contrib.gis comment links
Backport of 783572abc4cbbdf3272801d5d19ff8d7d5f2189d from master
2015-05-06 12:08:33 -04:00
Sławomir Ehlert
178b8fbdcd [1.8.x] Fixed typos in docs/ref/contrib/gis/geoquerysets.txt
Backport of 64ed8cdc9f2f7333b2a9fd6b318f520278c39293 from master
2015-05-06 09:59:10 -04:00
Anssi Kääriäinen
5b5858575c [1.8.x] Fixed #24752 -- query crash when reusing Case expressions
Case expressions weren't copied deep enough (self.cases list was
reused resulting in an error).

Backport of 7b05d2fdaed582662d8f79130932f600f4f966a0 from master
2015-05-05 11:38:48 -04:00
Abhaya Agarwal
eb00b427fc [1.8.x] Fixed #24736 -- Documented the Sitemap.limit attribute
Backport of 9096e2b5f75abf8e8882937bd3c3d47ccdc24e25 from master
2015-05-05 09:22:54 -04:00
Milan Broum
0d6b7e4a88 [1.8.x] Allowed using the sqlite3 backend as much as possible without _sqlite3.
The inner import was dropped during the reorganizing of the database
backends in commit 28308078f397d1de36fd0da417ac7da2544ba12d.

Backport of 95058606c89ba2dc95205487fa837ec39cf41ed5 from master
2015-05-04 13:00:23 -04:00
Tim Graham
efb9860432 [1.8.x] Used a simpler word that doesn't fail the spelling checker.
Backport of 17b1f7886c276086bbb471c0d5c3b510319f8bbb from master
2015-05-04 10:55:57 -04:00
Aymeric Augustin
4c880428d9 [1.8.x] Added release notes for previous commit.
Backport of 81f7651 from master
2015-05-04 07:42:50 +02:00
Aymeric Augustin
1f0a6082ec [1.8.x] Fixed #24685 -- Fixed check for template name unicity.
Thanks Preston Timmons for the report.

Backport of 1563b89 from master
2015-05-04 07:39:28 +02:00
José Padilla
0c79932881 [1.8.x] Fixed typo in translation import statement
Backport of b0bd1f0e19857ed8c085f4621c5b7fcfde5ec040 from master
2015-05-02 20:21:36 +02:00
Tim Graham
f0f8116a5f [1.8.x] Added stub release notes for 1.8.2.
Backport of 3cb386b8c2b2d7d72a3778c89d5d1f997fa0cad8 from master
2015-05-01 16:52:46 -04:00
Tim Graham
47374103de [1.8.x] Post-release version bump. 2015-05-01 16:46:49 -04:00
Tim Graham
3d128dcadd [1.8.x] Bumped version for 1.8.1 release. 2015-05-01 16:26:55 -04:00
Tim Graham
cc9eeceee2 [1.8.x] Added dates to release notes.
Backport of 06aaed41a4a9b8da8aca5854a45e457c0b72210e from master
2015-05-01 16:25:06 -04:00
Tim Graham
d7ea279f76 [1.8.x] Fixed #24724 -- Fixed GIS initialization crash on Windows.
Backport of 3c4fca271bd6850d252c4b637871e597484804d1 from master
2015-05-01 16:18:53 -04:00
Tim Graham
77ed1548f2 [1.8.x] Fixed #24676 -- Fixed help text positioning in `contrib.admin` filter_* widgets.
Backport of 2c3ce26beb254101f12fa69cc341ba9aeae62029 from master
2015-05-01 15:32:45 -04:00
Dave Hodder
53031cce42 [1.8.x] Updated capitalization in the word "JavaScript" for consistency
Backport of 08c980d752bc7f31f146facadfec3d284c4115c6 from master
2015-05-01 13:27:40 -04:00
daphshez
c45fd57f68 [1.8.x] Fixed #23271 -- Fixed makemessages crash/test failure for some locales.
Backport of 57202a112a966593857725071ecd652a87c157fb from master
2015-05-01 10:30:19 -04:00
Aric Coady
6b05d3a2e3 [1.8.x] Fixed #24729 -- Removed test db flush when using --keepdb. 2015-04-30 09:50:46 -04:00
Claude Paroz
cb370f8510 [1.8.x] Updated translations from Transifex
Updates for languages: Indonesian, Belarusian, Persian, and Dutch.
2015-04-30 14:27:51 +02:00
Tim Graham
556b1c8ad3 [1.8.x] Fixed model_regress test failure on non-ASCII path; refs #24717.
Backport of 29e90f3ae0b0b72bbdf342e0136414bff917c6a6 from master
2015-04-30 08:13:30 -04:00
Markus Holtermann
bf4dc5733f [1.8.x] Fixed #24725 -- Allowed renaming of target models in ManyToMany relations
This is a regression caused by introducing rendered migration states in
1aa3e09c2043 and the _meta refactoring in fb48eb05816b.

Thanks to Danilo Bargen for reporting the issue and Marten Kenbeek and
Tim Graham for triaging the bug and providing the initial test case.

Backport of 63f9b633f9cb620a4c4764b47dca127706a8d7b4 from master
2015-04-30 13:46:24 +02:00
Dmitry Medvinsky
49dea4164a [1.8.x] Added translation.override() context manager to docs.
Backport of cf34ee68f0d70cfbcba40524b5d1086ad94874e1 from master
2015-04-29 21:23:22 -04:00
Tim Graham
afae8ff916 [1.8.x] Fixed #24665 -- Clarified model field flag defaults.
Backport of 2b086229a2a6c786e32da37b6b122c2cc894450f from master
2015-04-29 20:41:07 -04:00
David D. Riddle
8c58caaf9d [1.8.x] Fixed #24717 -- Fixed model_regress test failure on RHEL6 SCL
The test failed on RHEL6 systems running python 2.7 from a RedHat
Software Collection (SCL) because this test runs an external python
script with a stripped system environment. RedHat SCLs work by setting
a number of system environment variables when these are stripped out by
this test the python 2.7 interpreter is no longer able to function
properly because it can not find the system libraries needed.

Now we use use mock to modify the system environment directly.

Backport of 31e6c9c8e310e68a96c1f76b9657242c6cecaa4d from master
2015-04-29 12:28:39 -04:00
Baptiste Mispelon
d5fb31da17 [1.8.x] Used full variable names instead of abbreviation in examples
Thanks to Andrew Ingram for the report.
Backport of 683ece0ec8d12d5e4f8656759ad87ace5792e2d1 from master.
2015-04-29 17:24:03 +02:00
Mounir
ec23572f12 [1.8.x] Fixed typo in docs/topics/i18n/translation.txt
Backport of 25b52d04f6eace3b702adf7c6ab68daf1867c7e3 from master
2015-04-28 12:53:38 -04:00
Aric Coady
b67bd1b483 [1.8.x] Fixed #24719 -- Restored the ability to use interators as queryset related object filters.
Backport of 9c2d8cde77ee6edd407e92f93eacd4624290394f from master
2015-04-28 11:00:58 -04:00
Alasdair Nicol
c37eb3c870 [1.8.x] Fixed #24714 -- Used more specific assertions than assertEqual in tests.
Backport of eaeea6f94701547ce1b50dbcf5cf71460e9e4c91 from master
2015-04-28 09:31:35 -04:00
Alasdair Nicol
5105c1628d [1.8.x] Used assertIsInstance in tests.
Backport of d91321e8be0d8e52546026d461b14157d565870c from master
2015-04-27 08:42:52 -04:00
Tim Graham
8fa763a983 [1.8.x] Fixed #24704 -- Clarified system check interaction with runserver.
Backport of 0f2e82b9ec9797147945a6f9a402b5ae0fb1d9f4 from master
2015-04-25 15:06:45 -04:00
Markus Holtermann
419f296259 [1.8.x] Fixed #24701 -- Converted model manager names to unicode in migrations
Thanks to Reto Aebersold for reporting the issue and Tim Graham and
Claude Paroz for the review.

Backport of faad6070ee2eeea270c76381f9ca5999bf1ac15f from master
2015-04-25 18:18:40 +02:00
Adam Zapletal
fc342bff94 [1.8.x] Fixed a typo and formatting consistency in testing tools docs
I changed "appears" to "appear" and emphasized the word "not" to match
the rest of the document.

Backport of 0cf7477ed839517e203e4b5aad414707cb401d30 from master
2015-04-25 12:24:54 +02:00
Nik Nyby
9e647ce86f [1.8.x] Added missing comma in LocMemCache example.
Backport of 9d6914da668d9a38537d4c29e3601f06dd830477 from master
2015-04-24 20:29:25 -04:00
Marcus Pennington
2a334d7985 [1.8.x] Fixed #24700 -- Added dash to slug regex in http docs
Backport of 269a5dbdd37362e27b2bb3bf3a600ffd5ea2c3bb from master
2015-04-24 13:10:51 -04:00
Nicolas Noé
61e902c4c4 [1.8.x] Fixed #24656 -- Added missing imports to query expressions doc.
Backport of 37682368a604e08f3135375c85529e566492a352 from master
2015-04-24 10:55:35 -04:00
Daniel Harding
911e09833b [1.8.x] Updated startproject MIDDLEWARE_CLASSES in docs.
Backport of ad31bc0565914c4676bfb7c116c4be407a367be4 from master
2015-04-24 09:34:19 -04:00
Alasdair Nicol
415a65fc0c [1.8.x] Fixed #24695 -- Tidied up a couple of regexes in the CBV docs
Thanks datakid for the report

Backport of b9e972b96171236c40a8a922c62d36b49854ee52 from master
2015-04-24 09:23:59 -04:00
Tim Graham
fa49b99e31 [1.8.x] Documented INSTALLED_APPS requirement for HStoreField.
Backport of 618bc4e65316681314522f63522c419fb6f7285e from master
2015-04-24 08:27:09 -04:00
Richard Eames
fe533fc537 [1.8.x] Fixed #24613 -- Added example to QuerySet.defer() documentation
Backport of dd99f57710bb4930561a6c049f54719af80850ec from master
2015-04-22 19:19:17 -04:00
Tim Graham
322b9c90aa [1.8.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
Backport of 1418f7530455abf3e6f743164ae15ee6b2566a3c from master
2015-04-22 09:31:43 -04:00
Tim Graham
0778f4dd82 [1.8.x] Clarified "AbstractUser.last_login allows null values" in 1.8 release notes.
Backport of 27b92228a969941d8fc0d04a894f436c0e9120c7 from master
2015-04-22 08:48:12 -04:00
Claude Paroz
99bf9085a3 [1.8.x] Fixed #24672 -- Clarified note about installing postgis_topology
Thanks Serhiy Zahoriya for the suggestion and Tim Graham for the
review.
Backport of 6e8cb75e3e from master.
2015-04-21 17:57:36 +02:00
Steve Hiemstra
2329ca969f [1.8.x] Fixed #24682 -- Corrected a few generic editing view links
Backport of 258d81acbee252693569e3d4e5f95d3dfe3b0638 from master
2015-04-21 10:27:10 -04:00
Markus Holtermann
0cacb8f8ba [1.8.x] Fixed #24573 -- Considered new related models for reloading
Thanks tttomekkk for the report.

Backport of b93690c4652a108b4305c0df34509bfc267fd927 from master
2015-04-21 12:06:11 +02:00
Matthew Wilkes
697317f334 [1.8.x] Refs #24354 -- Prevented repointing of relations on superclasses when migrating a subclass's name change
The issue was hidden on 1.8+ until #24573 due to a bug inside the model
reloading process.

Forwardport of patch from ae87ad005f7b62f5fa5a29ef07443fa1bbb9baf0
2015-04-21 12:02:27 +02:00
Marten Kenbeek
516907540b [1.8.x] Refs #24591 -- Optimized cloning of ModelState objects.
Changed ModelState.clone() to create a deepcopy of self.fields.
2015-04-20 19:23:15 -04:00
Tim Graham
43f800a978 [1.8.x] Fixed #24659 -- Clarified docs of smtp.EmailBackend parameters.
Backport of ffe83d16bd0abfa58e4448cf9d48b52cc43544e9 from master
2015-04-20 15:47:07 -04:00
Simon Charette
beb957041c [1.8.x] Fixed #24674 -- Documented the correct NullBooleanField formfield.
Thanks to knbk for the report.

Backport of 37e23c606031d5b34197e196fb6e6fed0137bb37 from master
2015-04-20 15:19:57 -04:00
Anton
76f20c5307 [1.8.x] Fixed typo in docs/topics/class-based-views/intro.txt
Backport of f5fbddf22f5e9b760e76ef35f104270026c60693 from master
2015-04-20 14:11:51 -04:00
Tim Graham
e02616b1b0 [1.8.x] Fixed #24668 -- Amended ModelAdmin.save_formset() example for #10284.
Thanks Carsten Fuchs.

Backport of e15c55e2bf5eb2f1073d18b4ee6fdce2369820f2 from master
2015-04-20 10:49:56 -04:00
Neal Todd
b39c970cfe [1.8.x] Amended get_all_related_objects() backwards compatible replacement.
Backport of d84f01ff08922c70f9bb0861846c8ace0764b2dc from master
2015-04-20 09:50:31 -04:00
Yoong Kang Lim
b8f203b3f2 [1.8.x] Fixed #24667 --- Repaired model_fields cardinality test
Backport of 36eab95e7fde7fad4368192ddbef4e2dbb32dc91 from master
2015-04-20 09:41:38 -04:00
Marco Santamaria
1e0bf2cab9 [1.8.x] Fixed #11078 -- Removed inaccurate docs about proxy models Meta.
Backport of bae72bdd2aa93472617ed28fc3d5a01f0920ea6e from master
2015-04-20 09:17:28 -04:00
Claude Paroz
ff6e8681a3 [1.8.x] Fixed #24658 -- Added missing Meta attribute in schema tests
Without that, the Note model would be initially created and then
the tests using that model failed when run in isolation.
Backport of f54c0ec06e from master.
2015-04-19 00:08:21 +02:00
Shai Berger
8363f217f2 [1.8.x] Fixed #24595 Oracle test failure
The only problem for Oracle was the test, which tested nullity on
text/char fields -- but Oracle interprets_empty_strings_as_null.

Backport of d5a0acc from master
2015-04-18 18:55:54 +03:00
Tim Graham
ae47854a25 [1.8.x] Removed DateTimeQuerySet from docs.
Obsolete since refs #23867.

Backport of e9fdecf98417e39a93c81a854a780550321a9795 from master
2015-04-18 10:14:38 -04:00
Tim Graham
bd0883d5cc [1.8.x] Fixed typo in docs/releases/1.8.1.txt 2015-04-17 11:25:55 -04:00
Eric Whitmire
901de5fbce [1.8.x] Fixed #24655 -- Fixed JavaScript path of contrib.admin's related field widget 2015-04-17 11:22:22 -04:00
Tim Graham
f21dd827b7 [1.8.x] Fixed #24657 -- Fixed include template tag example.
Thanks pattypatpat for the report.

Backport of f47c796b52a3c504d487c2484153fa5d90a25a74 from master
2015-04-17 07:54:56 -04:00
Claude Paroz
bbfcd9618b [1.8.x] Fixed #24595 -- Prevented loss of null info in MySQL field alteration
Thanks Simon Percivall for the report, and Simon Charette and Tim
Graham for the reviews.
Backport of 02260ea3f6 from master.
2015-04-17 11:01:36 +02:00
Tim Graham
d0b18542f7 [1.8.x] Fixed gis_tests when run without GIS dependencies.
Backport of ed336a1a5d3991acef2208b7aaf9fbe99af48a14 from master
2015-04-16 20:01:30 -04:00
Tim Graham
9e5e4914ef [1.8.x] Fixed #24646 -- Fixed jinja2 example on Python 2.
Backport of d974c89ebb8a59d91f664035d98d42dbb5cdd592 from master
2015-04-16 19:33:07 -04:00
Anssi Kääriäinen
581afddc77 [1.8.x] Fixed #24605 -- Fixed incorrect reference to alias in subquery.
Thanks to charettes and priidukull for investigating the issue, and to
kurevin for the report.

Backport of 355c5edd9390caad5725375abca03460805f663b from master
2015-04-16 09:31:29 -04:00
Daniel Lindsley
1e594b257e [1.8.x] Fixed #23984 -- Added Javascript i18n documentation
This fleshes out the documentation around all of the exported
Javascript functions available from the ``javascript_catalog``
view.

Backport of 8ca9bc5ec326c0b01634dac264a9ba6f0857483e from master
2015-04-16 08:19:30 -04:00
Abdulrahman Alotaibi
5678e4b93a [1.8.x] Fixed #24644 -- Added HTTP_ACCEPT to example headers list.
Backport of 62261ddd0f2d5f2e6bcce013f2913cdb1b1f0be0 from master
2015-04-16 07:39:33 -04:00
Tim Graham
6e5e1a380c [1.8.x] Fixed #24645 -- Documented use of HStoreExtension.
Backport of d3bf5e7b0016edc02e125699c0b0d3aa93404940 from master
2015-04-16 07:25:38 -04:00
Anssi Kääriäinen
70ff455a35 [1.8.x] Fixed #24615 -- ordering by expression not part of SELECT
Fixed queries where an expression was used in order_by() but the
expression wasn't in the query's select clause (for example the
expression could be masked by .values() call)

Thanks to Trac alias MattBlack85 for the report.
Backport of fb5c7748da from master.
2015-04-16 09:42:42 +02:00
Jon Dufresne
c38d8f0f87 [1.8.x] Fixed model_fields tests to use django TestCase.
Backport of 97bb48d9ba864060d57a3137fb9c456b98ecc79b from master
2015-04-15 08:19:55 -04:00
Simon Charette
a988cc8f18 [1.8.x] Fixed typos in the 1.7.7 release notes.
Backport of 28e89783254ac0899a26eee324555a9033ccbe9a from master
2015-04-14 22:14:52 -04:00
Tim Graham
62012b071e [1.8.x] Removed docs for removed transaction APIs.
Backport of 6b8c969878fb937c94eaf2cdc3de94554f171bdd from master
2015-04-14 13:53:18 -04:00
Markus Holtermann
c8b89964de [1.8.x] Fixed title in 1.7.8 release notes
Refs 309142dba10e24557b67a2734aa67d56518c0b14

Backport of 825bb0ab08cec353edcd2b9aea651bfe9392ef97 from master
2015-04-14 19:28:03 +02:00
Andrew Pinkham
b1d83209d0 [1.8.x] Fixed #24635 -- Updated deprecated urls.py examples in default project template.
Backport of 0b5abb03218ff0c575cee0c83e446bab81cbfadd from master
2015-04-14 12:58:31 -04:00
peterfarrell
309142dba1 [1.8.x] Fixed #24637 -- Fixed database introspection with SQLite 3.8.9.
Backport of f8e8853b51476af1cc75a229dadc990c9ccf45ec from master
2015-04-14 11:30:21 -04:00
Joe Borg
6724ae1185 [1.8.x] Added missing periods in migrate help messages.
Backport of 503bbc49d894586934b520bafe116b2c40bb45ec from master
2015-04-14 08:10:39 -04:00
Tim Graham
42f9bbd9d9 [1.8.x] Fixed typos in docs/ref/templates/api.txt
Backport of c612786cf15e2e1d00162ed4e335e83b75e6c978 from master
2015-04-14 07:58:36 -04:00
Maxime Lorant
e560bc2a3e [1.8.x] Fixed formatting in docs/ref/templates/builtins.txt
Backport of 6023312dde022d31d44373e8834431456095dc7c from master
2015-04-14 07:05:57 -04:00
Markus Holtermann
584c6591a3 [1.8.x] Refs #24625 -- Filtered docutils warnings output in tests
Instead of setting ``warning_stream`` in the docutils config overrides
to ``False`` I opted for filtering the stderr in the tests to keep the
error output showing up in server logs.

Thanks Tim Graham for the report and review

Backport of 3caf7efb44712f89d6552076c240a3c898673a2c from master
2015-04-14 11:27:57 +02:00
Jay Wineinger
496800b3bf [1.8.x] Fixed #24611 -- Fixed update() crash with related UUID pk object.
Backport of 923da0274a9a8c4ef2ac9776f71bd14628e39fc3 from master
2015-04-13 12:20:41 -04:00
Afriza N. Arief
3928270495 [1.8.x] Fixed typo in docs/howto/deployment/wsgi/apache-auth.txt
Backport of b295fcd19c00706d7f60db73741c1311ee141409 from master
2015-04-13 07:51:08 -04:00
Markus Holtermann
3862826fed [1.8.x] Fixed #24625 -- Prevented arbitrary file inclusion in admindocs
Thanks Tim Graham for the review.

Backport of 09595b4fc67ac4c94ed4e0d4c69acc1e4a748c81 from master
2015-04-11 21:12:09 +02:00
Claude Paroz
774d09a7dd [1.8.x] Fixed #24624 -- Replaced obsoleted rel.opts in admindocs view
Thanks Scott Sanders for the report, and Markus Holtermann and
Tim Graham for the reviews. Refs #24381.
Backport of 4e7ed8d0d from master.
2015-04-11 15:34:02 +02:00
andredelorme
190afb8618 [1.8.x] Fixed typo in docs/ref/contrib/admin/index.txt
Backport of d5d92260bbc5b00abc9d59a1987efb6a322bd3cd from master
2015-04-09 13:44:31 -04:00
Tim Graham
b1dc128a03 [1.8.x] Fixed #24578 -- Fixed crash with QuerySet.update() on FK to O2O fields.
Thanks Anssi Kääriäinen for review.

Backport of 10b4c010ab2cdaa6ba8bfaec3e3540299ea77be from master
2015-04-09 08:24:07 -04:00
Tim Graham
d11e87bff5 [1.8.x] Fixed #24602 -- Removed obsolete reference to __metaclass__ in custom model fields docs.
Thanks schinckel for the report.

Backport of 6d7784a7b994eb8287ec851b22acb5170e77a90a from master
2015-04-08 08:36:41 -04:00
Tim Graham
9e87017a38 [1.8.x] Fixed #24600 -- Fixed inaccurate example in template Context docs.
Thanks pattypatpat for the report.

Backport of 3acefcefeb5283473ac35d7e842027814d57d574 from master
2015-04-08 07:30:28 -04:00
lampslave
e2294b453c [1.8.x] Fixed typo in docs/ref/models/expressions.txt
Backport of 800240cb1dda2c4ff7182df3566d744c6c377bf7 from master
2015-04-07 13:59:20 -04:00
Tim Graham
993074d78d [1.8.x] Fixed #24429 -- Doc'ed that Django 1.8 doesn't require an integer PK for custom user models.
Backport of 981e3b9394022810bd536474344e2f91c190b858 from master
2015-04-07 10:47:48 -04:00
Patrik Lundin
b3d36c3514 [1.8.x] Specified file names for example code in docs/topics/forms/index.txt
Backport of f9c212d09ad59cd5b5d9be06e92be87d44c75d95 from master
2015-04-07 09:35:39 -04:00
Patryk Zawadzki
9f632dc702 [1.8.x] Fixed #24513 -- Made sure a model is only rendered once during reloads
This also prevents state modifications from corrupting previous states.
Previously, when a model defining a relation was unregistered first,
clearing the cache would cause its related models' _meta to be cleared
and would result in the old models losing track of their relations.

Backport of 0385dad073270c37f8c4a5f13edce43f2a69ba8a from master
2015-04-07 14:56:33 +02:00
Marios Zindilis
f5681f1cbf [1.8.x] Fixed typo in docs/intro/tutorial02.txt
Backport of 7a7c797234aede7603e92a0a90b9f4c4a8b92a0c from master
2015-04-07 07:41:46 -04:00
Thomas Güttler
ffa5a7550d [1.8.x] Added admonition about reusable apps and AUTH_USER_PROFILE.
Backport of 566c9362363f4b65cc64a35f907c2d6c39d0289e from master
2015-04-06 19:50:23 -04:00
Jon Dufresne
551d4bb46a [1.8.x] Fixed #24584 -- Fixed microsecond handling with older MySQLdb
Backport of 2cf58e80d from master.
2015-04-06 22:45:36 +02:00
Marten Kenbeek
773387ce42 [1.8.x] Fixed #24278 -- Fixed serialization of migration operations.
Fixed MigrationWriter.serialize() to correctly handle migration
operations by utilizing OperationWriter.

Thanks Piotr Maliński for the report.

Backport of e8e4f978dd4b7a3d0c689c6e3301e3c6f9e50003 from master
2015-04-05 20:29:27 +02:00
Marten Kenbeek
651cc369ad [1.8.x] Refs #24278 -- Allowed multi-line serializations in OperationWriter.
Changed OperationWriter to support multi-line serialized values with
correct indentation.

Backport of d597174bd4cfd9a0e1b34dae8b4d8d027a8cab72 from master
2015-04-05 20:29:21 +02:00
Tim Graham
9b815399d2 [1.8.x] Added link to download page to find supported versions.
Backport of 8c4827ec1d44fee05db189766174c115795a495e from master
2015-04-04 08:00:30 -04:00
Tim Graham
3313156d8e [1.8.x] Fixed flake8 warning. 2015-04-04 07:50:53 -04:00
Claude Paroz
3a76276212 [1.8.x] Fixed #24569 -- Made some translation functions accept None value
get_language() can return None when translations are deactivated.
Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
Backport of 7a0d9b5cda from master.
2015-04-04 10:58:54 +02:00
Claude Paroz
7821f856a6 [1.8.x] Fixed #24571 -- Restored testserver positional arguments parsing
Thanks Domas Lapinskas for the report and Tim Graham for the
review.
Backport of 426b63ba04 from master.
2015-04-04 10:48:40 +02:00
Sam Thursfield
5cc0407e45 [1.8.x] Fixed #24556 -- Added reminder about HTTPS to passwords docs.
Backport of 1119063c69eb4fc091c212e59462f3ec3d5676a4 from master
2015-04-03 10:55:35 -04:00
Preston Timmons
7ae7600d2b [1.8.x] Updated docstring for firstof tag to reflect new auto-escaping behavior.
Backport of a1842e3299daf3bde0ab5d418c912a265e7479c9 from master
2015-04-03 07:29:09 -04:00
Ian Lee
dcf2bbf0f0 [1.8.x] Fixed minor typo in Cryptography section of 1.8 release notes
Backport of 90c4c300a816e92f559bcec19c0778499efc19ef from master
2015-04-03 07:27:15 -04:00
Matt Hooks
5e4a69e07d [1.8.x] Fixed typo in django.core.files.File docstring.
Backport of 2c39f282b8389f47fee4b24e785a58567c6c3629 from master
2015-04-02 20:39:00 -04:00
Tim Graham
f718691ec8 [1.8.x] Removed Django 1.6 from the Python version chart.
Backport of 147ac856131233b2960503c3cc0d65059a57851a from master
2015-04-02 14:22:29 -04:00
Baptiste Mispelon
09188b5024 [1.8.x] Fixed #24566 -- Added support for serializing timedelta
Thanks to knbk for the report.

Backport of 30a3c2f74c030449d3a8b9f02ab6744874712e54 from master.
2015-04-02 17:41:08 +02:00
Tim Graham
e7366ab1f9 [1.8.x] Fixed mistakes in tests unveiled by version bump to 1.8.1. 2015-04-02 07:01:42 -04:00
Krzysztof Gogolewski
b0512db5c4 [1.8.x] Fixed typo in docs/internals/deprecation.txt 2015-04-01 19:01:44 -04:00
Aymeric Augustin
ae4d21e159 [1.8.x] Pointed Jinja2 users to Babel instead of makemessages.
Backport of 8520551 from master
2015-04-01 22:37:39 +02:00
Tim Graham
0c01913d55 [1.8.x] Added stub release notes for 1.8.1.
Backport of 1b605838bf1fa5527fd82b0f94d11c43d41f3f81 from master
2015-04-01 16:18:47 -04:00
Tim Graham
349c15b45e [1.8.x] Post-release version bump. 2015-04-01 16:18:03 -04:00
Tim Graham
feac4c30ce [1.8.x] Bumped version for 1.8 release. 2015-04-01 15:46:45 -04:00
Tim Graham
2011c7a031 [1.8.x] Added release date for Django 1.8.
Backport of 61d6c5d02effef8852d344e4fcaf0754fd47d741 from master
2015-04-01 15:31:16 -04:00
Claude Paroz
72de42cd40 [1.8.x] Refs #24500 -- Avoided locale.getpreferredencoding in makemessages
Fixes a regression introduced in 53c2cf1e.
Backport of 3f4e77840 from master.
2015-04-01 20:03:51 +02:00
Claude Paroz
70c5031d56 [1.8.x] Adapted form regression test to new translations
Backport of 2112b7d78 from master.
2015-04-01 19:53:11 +02:00
Tim Graham
5a4f95805f [1.8.x] Refs #24538 -- Simplified a test per Aymeric's feedback.
Backport of a184a99123e4dc4c2a90c20e1604e5d301cd76bf from master
2015-04-01 13:19:57 -04:00
Tim Graham
5c63c45512 [1.8.x] Fixed #23441, #24555 -- Improved the behavior of InclusionNode.
This change:

* Makes the InclusionNode cache-safe by removing render-time side effects
  to its nodelist.
* Ensures the render_context stack is properly scoped and reset by updating
  the render call to use Template.render rather than Nodelist.render.

Backport of 0808ccce3808235c5b5a56e3f689cec0d4bc0ebf from master
2015-04-01 13:12:18 -04:00
Tim Heap
ff8eabc5cc [1.8.x] Fixed #24538 -- Allowed self in Jinja context
Rendering a Jinja template with self in the context threw an error.
While self is a reserved variable in Jinja, including self in the
context is not an error, so Django should respect that.

Backport of 4ea1909d3c420ba1fbdbf7221cad518d43aef885 from master
2015-04-01 12:27:52 -04:00
Claude Paroz
5483c66f85 [1.8.x] Fetched updated contrib translations from Transifex 2015-04-01 15:05:29 +02:00
Claude Paroz
d1b206daf8 [1.8.x] Fetched updated core translations from Transifex 2015-04-01 14:54:32 +02:00
Claude Paroz
05a781a475 [1.8.x] Removed source strings from translated po files 2015-04-01 14:54:07 +02:00
Markus Holtermann
2218f7617e [1.8.x] Refs #24554 -- Prevented rendering of unused migrations
Thanks Claude Paroz and Tim Graham for the review

Backport of 3e7d9d05ac5efff4e4732c3453c7a8ef502d0ed0 from master
2015-04-01 11:14:55 +02:00
Markus Holtermann
0c7e2833d9 [1.8.x] Fixed #24554 -- Sped up migrations by rendering initial apps when they are first needed
Calling Migration.mutate_state() now also allows to do in_place
mutations in case an intermediate state is thrown away later.

Thanks Anssi Kääriäinen for the idea, Ryan Hall for parts of the patch,
and Claude Paroz and Tim Graham for the review

Backport of 57dc8dd3fa3c3adf133c522ecadb501d94bacd52 from master
2015-04-01 11:14:55 +02:00
Joost Rijneveld
9e9914701a [1.8.x] Fixed typo in docs/ref/templates/builtins.txt
Backport of 48ddc66219deaac2aa5fa3d2cb0f420404d6b8ec from master
2015-03-31 21:21:50 -04:00
Kostochko Dmitriy
c2674c2103 [1.8.x] Fixed typo in docs/topics/cache.txt
Backport of d026eb63666a34382912cf68af75492fc583b9db from master
2015-03-31 21:16:26 -04:00
Tim Graham
7b9f7b6670 [1.8.x] Fixed sessions test on Python 3.5; refs #23763.
SimpleCookie.__repr__() changed in
https://hg.python.org/cpython/rev/88e1151e8e02

Backport of 4e59156c10d36eeb1e6fced4dff0f11157f68264 from master
2015-03-31 08:41:31 -04:00
Tim Graham
793ecf6db7 [1.8.x] Documented jinja2 install requirement.
Backport of 56286542dbb7d1cca253b25de0eb3eb4392ff271 from master
2015-03-31 07:45:02 -04:00
Andriy Sokolovskiy
121c5f7d5b [1.8.x] Removed duplicate attribute in MySQL DatabaseSchemaEditor.
Backport of 29b4a3f513f412fb4a987b777b61b596c09d217e from master
2015-03-30 19:24:06 -04:00
Jorge Barata González
2bddc74b42 [1.8.x] Fixed #15590 -- Documented how the path of a FileField can be changed.
Thanks simon29 for report, and freakboy3742, floledermann,
jacob, claudep and collinanderson for discussing the task.

Backport of 931a340f1feca05b7a9f95efb9a3ba62b93b37f9 from master
2015-03-30 10:39:14 -04:00
Christopher Luc
c4e8f21a9c [1.8.x] Fixed #24281 -- Improved docs for timezone handling for auto_now and auto_now_add
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the
review.

Backport of 8119876d4a533fbc2ba4d1c30eaddbcc28119488 from master
2015-03-29 23:38:51 +02:00
Tim Graham
c0102dc7ff [1.8.x] Fixed skipping of gis_tests when dependencies not installed.
Backport of ba1665ed75264e57b7bc6cd7606e072ad3050a3b from master
2015-03-28 09:39:49 -04:00
Tim Graham
a70dea2c06 [1.8.x] Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
Backport of 6de3a1e2c34ae5bfcdec3ebbf3d682aa578ecae0 from master
2015-03-28 08:59:50 -04:00
Tim Graham
b0846a040e [1.8.x] Fixed syntax highlighting in docs/topics/auth/default.txt
Backport of 3e132406e3a95b3fe54e75129013e10bf3e9e86a from master
2015-03-28 07:51:37 -04:00
SaeX
6f69e77a9e [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt
Backport of 19e41a9799079ddae3ba94f95d25577ab4232037 from master
2015-03-28 07:40:54 -04:00
Moritz Sichert
44a05a8a91 [1.8.x] Fixed #24469 -- Refined escaping of Django's form elements in non-Django templates.
Backport of 1f2abf784a9fe550959de242d91963b2ad6f7e9c from master
2015-03-27 20:01:41 -04:00
Tim Graham
6a2f46f238 [1.8.x] Fixed #24519 -- Clarified location of templates directory in tutorial 2.
Backport of 2acf9d099d29f45c829ee0127e55b7cfdd201995 from master
2015-03-27 09:58:44 -04:00
Tim Graham
17c3a26ac2 [1.8.x] Added some missing newlines in docs/ref/validators.txt.
Backport of f4cc0c40a85a8cbba6d2e4cd3158070dfd8645a2 from master
2015-03-25 18:32:48 -04:00
David Seddon
ef61b69447 [1.8.x] Corrected typo in documentation
Backport of 0f6f80c2e7736ec4e2aa40287fe8c37ffff0a783 from master
2015-03-25 13:44:13 -04:00
Tim Graham
0dc986d1c8 [1.8.x] Fixed #24361 -- Clarified docs on reconfiguring logging.
Thanks Tuttle for the report and draft patch, and Carl Meyer for
help and review.

Backport of c633667da3605208ea5fc137f5322c599f48da69 from master
2015-03-24 12:26:25 -04:00
Tim Graham
b81ce2ed67 [1.8.x] Fixed #24532 -- Restored fallback support for allow_syncdb. 2015-03-24 10:33:50 -04:00
Matt Seymour
09933aef68 [1.8.x] Fixed #24501 -- Improved auth.decorators.user_passes_test() example.
Backport of fca14cd3f27a01f7ba1fe32ea9587fa75b85713a from master
2015-03-24 10:30:30 -04:00
Varun Sharma
8f5e8ab666 [1.8.x] Added test for LogEntry.get_edited_object(); refs #24244.
Backport of 74f8110e74927c231bfcd106fa28bf6e6dd034e6 from master
2015-03-23 08:52:32 -04:00
Bas Peschier
015a9b928a [1.8.x] Fixed #13525 -- Added tests and docs for nested parameters in URL patterns.
When reversing, only outer parameters are used if captured parameters are
nested. Added tests to check the edge cases and documentation for the
behavior with an example to avoid it.

Backport of 23a5d64f40b0f4a3fbfef7427ca793cb1df1034e from master
2015-03-23 08:43:58 -04:00
Tim Graham
ce6062dbd9 [1.8.x] Fixed backport of refs #24485 tests. 2015-03-22 16:14:15 -04:00
Iacopo Spalletti
6da4ce5365 [1.8.x] Fixed #23814 -- Pointed localflavor documentation to external package
Edited localflavor doc to point to the external package documentation,
leaving just the 'How to migrate' section in Django.

Backport of 87fed9444033533ad7105c4b1e4ffc5d7854a2c6 from master.
2015-03-22 15:36:44 +01:00
Josh Smeaton
e654123f7f Fixed #24485 -- Allowed combined expressions to set output_field 2015-03-22 17:41:12 +11:00
Josh Smeaton
3a1886d111 [1.8.x] Fixed #24508 -- Made annotations commutative
Backport of 127b3873d03704f77428b984de022664b268314e from master
2015-03-22 17:35:22 +11:00
Pakal
dc2cff5fcb [1.8.x] Fixed #24500 -- Fixed makemessages encoding problems retrieving gettext version.
Backport of 53c2cf1e7b3f1c9a7794fcc5c4669145f351b2fa from master
2015-03-21 09:10:01 -04:00
Claude Paroz
8e4b0d6010 [1.8.x] Fixed #24515 -- Fixed DjangoTranslation plural handling
Backport of 9e83f30cd31 from master.
2015-03-21 10:29:22 +01:00
David Seddon
744d9a10ef [1.8.x] Refs #14645 -- Documented bug with exclude() and multi-value relations
Backport of 6770b7ecd208a0746f181e54202fb829460c6490 from master
2015-03-20 17:51:57 -04:00
Claude Paroz
5da3153d56 [1.8.x] Fixed #23520 -- Explained that custom plural forms should be avoided
Thanks aruseni for the report.
Backport of 556eb67701 from master.
2015-03-20 20:46:02 +01:00
Tim Graham
5cd551409e [1.8.x] Fixed #24503 -- Added docs on LANGUAGE_CODE fallback change in 1.8.
Thanks Pakal and Claude.

Backport of 8219eabbba6e8f6d8569792615935011b5cf0771 from master
2015-03-20 12:10:18 -04:00
Jon Walsh
2b267a70a1 [1.8.x] Fixed typo in escape_filter() docstring.
Backport of 8d90489fe0049049f1f13c737ac51a24abf1efc3 from master
2015-03-19 07:22:21 -04:00
Tim Graham
e3c9412d86 [1.8.x] Bumped version to 1.8 rc 1. 2015-03-18 19:23:22 -04:00
Tim Graham
770427c289 [1.8.x] Made is_safe_url() reject URLs that start with control characters.
This is a security fix; disclosure to follow shortly.
2015-03-18 19:23:21 -04:00
Tim Graham
5447709a57 [1.8.x] Fixed an infinite loop possibility in strip_tags().
This is a security fix; disclosure to follow shortly.
2015-03-18 19:23:21 -04:00
Tim Graham
5a8ef2a3cf [1.8.x] Added stub release notes for security releases. 2015-03-18 19:23:21 -04:00
Karl Hobley
a8c53041f9 [1.8.x] Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.
Backport of 81e1a35c364e5353d2bf99368ad30a4184fbb653 from master
2015-03-18 19:12:46 -04:00
Tim Graham
247251c2e1 [1.8.x] Refs #24483 -- Added a test for deconstruction of Field.choices
Backport of b4a56ed4f55502239cb11b57f0fa75baa0a97640 from master
2015-03-18 13:56:33 -04:00
Moritz Sichert
571e093a25 [1.8.x] Refs #24469 -- Fixed escaping of forms, fields, and media in non-Django templates.
Backport of 6bff3439894ac22d80f270f36513fc86586273f3 from master
2015-03-18 09:11:44 -04:00
Claude Paroz
1cd2584c98 [1.8.x] Updated translation catalogs
Strings are frozen in anticipation of the Django 1.8 release.
2015-03-18 09:29:12 +01:00
Claude Paroz
1bb712d79c [1.8.x] Removed translations from contrib.messages
The only one translatable string will be handled in the core catalog.
2015-03-18 09:28:28 +01:00
Tim Graham
4cc501205d [1.8.x] Updated location of database backend data_types attribute in docs.
Backport of d9a30ed190d68a5450cba8b3cd26ef6bcd8a70ff from master
2015-03-17 20:04:30 -04:00
Tim Graham
0c92913bb0 [1.8.x] Updated links to latest version of PostGIS docs.
Backport of 53d11c6821b7b347e0eeefb96168cc1861715a6b from master
2015-03-17 18:35:51 -04:00
Tim Graham
ddb95d6d53 [1.8.x] Refs #24487 -- Added upgrade tips about removal of SortedDict.
Thanks Pascal Chambon for the initial patch.

Backport of c5c8751147d41913a05e86097ea29ccc9fc2e5be from master
2015-03-17 13:42:54 -04:00
Tim Graham
717bbd473c [1.8.x] Updated location of gis_tests in docs.
Backport of 64b9393ae279fde1ac535348458b3ff960177225 from master
2015-03-17 11:35:41 -04:00
Josh Smeaton
a0cebe82b5 [1.8.x] Refs #24485 -- Renamed some expression types
Backport of 88d798d71a20662bdf5335f0586fb9eb6e660c57 from master
2015-03-17 08:40:45 -04:00
Josh Smeaton
34e09e532d [1.8.x] Fixed #24486 -- Fixed error with datetime and DurationField arithmetic
Backport of ff2aa4019259947734c4791d6afc9f5405d901d0 from master
2015-03-17 08:36:15 -04:00
John Giannelos
e150bbd4d6 [1.8.x] Fixed #24427 -- Stopped writing migration files in dry run mode when merging.
Also added display of migration to stdout when verbosity=3.

Backport of 8758a63ddbbf7a2626bd84d50cfe83b477e8de0a from master
2015-03-16 19:45:55 -04:00
Marten Kenbeek
febcbbf89d [1.8.x] Fixed #24488 -- Made create_default_site() use default pk of 1.
Fixed create_default_site() to use a default value in case
settings.SITE_ID isn't set; refs #23945.

Backport of 818182b514d1c6b379130c440689355b4d231d49 from master
2015-03-16 13:31:22 -04:00
Preston Timmons
ff71d6b8de [1.8.x] Documented Context.get() method.
Backport of 4d9414098bd98aacd241827a01f6ad2dff71f113 from master
2015-03-16 13:13:47 -04:00
Josh Smeaton
09062e9509 [1.8.x] Fixed #24486 -- Documented method to provide output_field to mixed F expressions
Backport of 820381d38bc02ea8b92837ce869e7332a7db9913 from master
2015-03-16 11:56:09 -04:00
Adrian Andreias
63b998a653 [1.8.x] Fixed allow_migrate() signature in router examples.
Backport of 937643a1f215d7d2063b256269d757a2ee316f07 from master
2015-03-16 09:39:41 -04:00
HerHde
6dcbfc0700 [1.8.x] Added missing punctuation in some comments in tutorial 5.
Backport of 39573a11db694a584de6ca2a858fa05ec4ea13e1 from master
2015-03-16 08:24:58 -04:00
Steven Das
f2db113f51 [1.8.x] Added comma to improve readability in 1.7 release notes.
Backport of 4f494ed0c60cdfc44b65aeea7f42f6b7245c03af from master
2015-03-16 08:17:01 -04:00
Matthew Wilkes
22a67d22e9 [1.8.x] Refs #24354 -- Prevented repointing of relations on superclasses when migrating a subclass's name change
Forwardport of test and release note from stable/1.7.x

Backport of ae87ad005f7b62f5fa5a29ef07443fa1bbb9baf0 from master
2015-03-14 15:47:10 -04:00
Tim Graham
da8b3aa7eb [1.8.x] Fixed #24480 -- Marked strings in contrib.gis templates for translation.
Backport of 21ffbb06ec9eb741f62ac51abab4b722fb91b9bc from master
2015-03-14 15:20:53 -04:00
Floris den Hengst
bd36f2d432 [1.8.x] Fixed doc typos.
Backport of e42a720ba22a51c68d2316d425234a197eaff467 from master
2015-03-14 12:29:27 -04:00
Tim Graham
5b91802718 [1.8.x] Refs #24462 -- Emphasized that order_by() clears previous ordering.
Backport of b9d9ab23bdcc404708aada664e718a9d56415ca3 from master
2015-03-13 15:42:03 -04:00
Andrei Kulakov
937c8a5a14 [1.8.x] Fixed #24052 -- Doc'd how to write data migrations with models in multiple apps.
Backport of b089759d6025582f36fbea3c4be3855c50b82462 from master
2015-03-13 13:24:18 -04:00
Sævar Öfjörð Magnússon
8fe451d183 [1.8.x] Fixed #24478 -- Added NUMBER_GROUPING value for Icelandic
Backport of d8de9a64d7 from master.
2015-03-13 16:57:37 +01:00
Claude Paroz
f115694547 [1.8.x] Documented gdal DataSource encoding parameter
Thanks Max Demars for the suggestion and Tim Graham for the review.
Backport of a8991b9b9f1 from master.
2015-03-13 16:41:37 +01:00
Remco Kranenburg
6f555e54f7 [1.8.x] Refs #23559 -- warned about consequences of letting users edit User model in admin.
Backport of f6b09a7f85c3b67b2011553838b079788c413432 from master
2015-03-13 08:51:24 -04:00
Ian Lee
06085024f6 [1.8.x] Added link to section in docs/howto/custom-template-tags.txt.
Backport of 56cd87a5aff034a7b976977a2902697cd5397b94 from master
2015-03-13 08:26:28 -04:00
Ian Lee
606e436a37 [1.8.x] Fixed typo in docs/howto/custom-template-tags.txt.
Backport of 7614efa2f9e169749ab109aab909fbc244fd76a9 from master
2015-03-13 08:14:30 -04:00
Ian Lee
77564c6f5a [1.8.x] Documented how to use a non-root subdirectory with mod_wsgi.
Backport of 7f8588d22ea3b53ba55d05922b67e7b3a0a7c91c from master
2015-03-12 20:09:56 -04:00
Steven Das
e1657cc37f [1.8.x] Fixed typo in docs/ref/models/fields.txt
Backport of 53bc6e2e98b4889082049f50718b13f8d5d84b6b from master
2015-03-12 19:16:22 -04:00
Aksel Ethem
fee18ce415 [1.8.x] Fixed #24364 -- Doc'ed that ManifestStaticFileStorage shouldn't be used during testing.
Backport of b4d8b16e5109170614ba505e36f60c2ad64dafc2 from master
2015-03-12 09:23:57 -04:00
ldrumm
def39428bf [1.8.x] Fixed wrong operator in iri_to_uri() docs
Backport of 27ad12a9b865bf3deebd165360f73ace722cee31 from master
2015-03-12 13:49:07 +01:00
Dan Fellin
9f39715509 [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of 6ff826e12ea99c0eb871716cfedc2c8e199695f3 from master
2015-03-11 19:58:14 -04:00
Sean Wang
e0e2df412f [1.8.x] Fixed #24414 -- Added examples of Prefetch object usage to the docs.
Backport of a3e89f13dfb1f22a26ead8b06b37695598a4421a from master
2015-03-11 12:39:50 -04:00
Preston Timmons
2982143dac [1.8.x] Fixed typo in current_app deprecation note.
Backport of 6b605be5fe5ec62f6a927f868fc0f4e3413cd9e3 from master
2015-03-11 12:36:08 -04:00
Tim Graham
aba74d6f1e [1.8.x] Fixed escaping regression in urlize filter.
Now that the URL is always unescaped as of refs #22267,
we should re-escape it before inserting it into the anchor.

Backport of 7b1a67cce52e5c191fbfa1bca501c6f0222db019 from master
2015-03-10 19:12:20 -04:00
Claude Paroz
12e199356e [1.8.x] Fixed download instructions for cities shapefile
Thanks Daniel Wiesmann for spotting the issue.
Backport of 57d42aef97 from master.
2015-03-10 19:44:27 +01:00
Claude Paroz
e2816f1ff9 [1.8.x] Updated GIS docs wrt GIS test paths
Backport of 1825365152c from master.
2015-03-10 18:01:29 +01:00
Erik Romijn
846a970106 [1.8.x] Fixed #23903 -- Configured Sphinx to autogenerate django-admin manpage
Backport of f66c2bdc0f056ffcbf6df121ea9132aaa0c4cadb from master
2015-03-10 08:15:40 -04:00
Calvin Jeong
6e81786f92 [1.8.x] Fixed typo in docs/ref/database.txt
Backport of cefbbb9db3410f757532e0f968e76a8fd9e7ce3b from master
2015-03-10 07:12:39 -04:00
Psilo Cybin
b25e542ecd [1.8.x] Fixed #24456 -- Added links to topics/forms/modelforms.txt.
Backport of 866e71140f9612e45087b8acafefa2e51ffc4a29 from master
2015-03-09 20:53:05 -04:00
Floris den Hengst
9853844ed3 [1.8.x] Fixed #24432 -- Added docs for ManyToManyFields that reside in and refer to the same model.
Backport of b9b8411129efe13642cef1fc6bbfc62bed717352 from master
2015-03-09 20:46:26 -04:00
Tim Graham
ffa4ff5e8c [1.8.x] Added stub release notes for 1.7.7.
Backport of ea9157f681654d393c970108866edb344b65a1aa from master
2015-03-09 13:10:09 -04:00
Tim Graham
449d1effb8 [1.8.x] Bumped version to 1.8 beta 2. 2015-03-09 10:22:51 -04:00
Baptiste Mispelon
35d68e8e76 [1.8.x] Refs #24461 -- Added test/release notes for XSS issue in ModelAdmin.readonly_fields
This issue was fixed by refs #24464.
2015-03-09 10:15:12 -04:00
Tim Graham
980d604bf2 [1.8.x] Clarified an item in 1.7.6 release notes.
Backport of 300fdbbebba45cb4e7f32edc524171019d9bce80 from master
2015-03-09 10:11:44 -04:00
Erik Romijn
d16e4e1d6f [1.8.x] Fixed #24464 -- Made built-in HTML template filter functions escape their input by default.
This may cause some backwards compatibility issues, but may also
resolve security issues in third party projects that fail to heed warnings
in our documentation.

Thanks Markus Holtermann for help with tests and docs.

Backport of fa350e2f303572ee8f9a8302dda45a12288d3d95 from master
2015-03-09 09:31:07 -04:00
Anssi Kääriäinen
3a0fe942dd [1.8.x] Fixed #24171 -- Fixed failure with complex aggregate query and expressions
The query used a construct of qs.annotate().values().aggregate() where
the first annotate used an F-object reference and the values() and
aggregate() calls referenced that F-object.

Also made sure the inner query's select clause is as simple as possible,
and made sure .values().distinct().aggreate() works correctly.

Backport of fb146193c49e4c683dc8da39d9b7c479375fdb57 from master
2015-03-09 07:51:05 -04:00
Tim Graham
83269b2935 [1.8.x] Fixed typo in docs/howto/custom-template-tags.txt
Backport of 63f2dd4ad774d39fc7bbe05492d30efc45e4e7a9 from master
2015-03-09 07:06:32 -04:00
Rik
930fc4db7b [1.8.x] Fixed #21661 -- Expanded authentication views documentation
Backport of eb9b7abb833a6d317e355265552d47e0d8f24af8 from master.
2015-03-08 20:40:33 +01:00
Aymeric Augustin
311b880fa9 [1.8.x] Prevented some tests from writing in the CWD.
Backport of 90b069c33f3f8785a7d068a2032f130d2dbb0c75 from master
2015-03-07 10:40:17 -05:00
Jean-Louis Fuchs
1ae2df6bfc [1.8.x] Fixed #24447 -- Made migrations add FK constraints for existing columns
When altering from e.g. an IntegerField to a ForeignKey, Django didn't
add a constraint.

Backport of f4f0060feaee6bbd76a0d575487682bc541111e4 from master
2015-03-07 14:15:27 +01:00
Claude Paroz
ac07890f95 [1.8.x] Fixed urlize regression with entities in query strings
Refs #22267.
Thanks Shai Berger for spotting the issue and Tim Graham for the
initial patch.
Backport of ec808e807 from master.
2015-03-06 22:22:51 +01:00
Josh Smeaton
823f8cdbc9 [1.8.x] Fixed #24420 -- Allowed ordering by case expressions
Backport of ceaf31adfff3801f1092a215f73704e15a70e90c from master
2015-03-06 13:31:43 +11:00
Marten Kenbeek
bd7c879d5a [1.8.x] Stressed authentication should be successful before logging in a user.
Backport of 8e744fa1507b6d425860c54e7673e603279367eb from master
2015-03-05 12:18:13 -05:00
Aymeric Augustin
2bef57f3fb [1.8.x] Improved get_media_prefix template tag example.
Backport of 9a4a9a8a49ed3e38f3038b8d6fc7c405256271f1 from master
2015-03-05 10:00:05 -05:00
Benjamin Wohlwend
3bc35f7e08 [1.8.x] Moved definition of chunks out of timesince function.
This speeds up the timesince function/filter substantially.

Backport of d6969ab from master.
2015-03-04 22:31:27 +01:00
Tim Graham
20bf320502 [1.8.x] Fixed #24426 -- Displayed admin actions panel when show_full_result_count=False.
Backport of 36a17be9f3cf6081f7e6f83fcfeae3d09ce8a72b from master
2015-03-04 13:56:51 -05:00
Tim Graham
4fa61e0e4f [1.8.x] Used format_html() in contrib.admin.utils for consistency.
Backport of fe42bfaaff93e6b4af34ab48892e20c9cdee0c1a from master
2015-03-04 10:44:44 -05:00
Markus Holtermann
bff446c205 [1.8.x] Fixed #24435 -- Prevented m2m field removal and addition in migrations when changing blank
Thanks Mark Tranchant for the report and Tim Graham for the test and
review.

Backport of a9e29fae105d1ddd4e0ac2059cbe62b0ee348bc8 from master
2015-03-04 15:44:38 +01:00
Mathias André
44dd65fb2c [1.8.x] Removed outdated docstring for get_admin_url().
Since a4b8a4b632dbb6d9fed1a8654aed99a9c53560d4 the admin
URL returned by get_admin_url() is no longer relative to
the Django admin index page.

Backport of 85757d0e79f4237d7cf3ee1785946315aa6959eb from master
2015-03-03 07:47:32 -05:00
Ross Brunton
72539a5f29 [1.8.x] Fixed #24379 -- Documented that remote user example disables ModelBackend.
Backport of 6b28e957df364532109a1897c73a1fa8b1416bd4 from master
2015-03-02 19:57:12 -05:00
Tim Graham
cc525e31bb [1.8.x] Fixed #13015 -- Clarified language about model instances attached to forms.
Backport of a40a34a4b2d79dbf798df538c26222148d42b17c from master
2015-03-02 18:45:27 -05:00
Andrew Pinkham
ac6bc2c090 [1.8.x] Fixed #24439 -- Removed incorrect make_object_list attributes in CBV docs.
Backport of fea45eff5a2f2ad10b2788603db80e5a4fe6be06 from master
2015-03-02 13:33:42 -05:00
Ian Lee
ed25758556 [1.8.x] Added syntax highlighting for apache code blocks
Backport of fde4857fb83101d27ae4cb3552a6a6cf20d3d8ce from master
2015-03-02 12:37:07 -05:00
Brent O'Connor
761b97c344 [1.8.x] Updated contributing link in the README.
Backport of f7bf135f62297c580e9b36af4c2470adb652fbaf from master
2015-03-02 08:23:52 -05:00
Claude Paroz
c0df8d1be9 [1.8.x] Fixed #24413 -- Prevented translation fallback for English
Thanks Tomasz Kontusz for the report, Baptiste Mispelon for
analysis and Tim Graham for the review.
Backport of 3cf1c02695 from master.
2015-02-28 10:09:01 +01:00
Alex Shaindlin
5a3b59370c [1.8.x] Improved wording in tutorial 1.
Backport of dcdef1fe2ec59a7aeca39efc5a29f0d238d0c560 from master
2015-02-27 17:54:27 -05:00
Claude Paroz
b825ec38c1 [1.8.x] Fixed #24418 -- Prevented crash in refresh_from_db with null fk
Thanks Johannes Lerch for the report, Tim Graham for the test case,
and Simon Charette for the review.
Backport of 5cf96b49e4 from master.
2015-02-27 20:25:12 +01:00
Tim Graham
9d6f0dce13 [1.8.x] Fixed #24359 -- Cleaned up docs/ref/exceptions.html
Backport of 2b19b3a031e7d5b5264bc9e880d0192301289bc2 from master
2015-02-27 13:51:29 -05:00
Tim Graham
31a1f96bd3 [1.8.x] Added stub release notes for 1.7.6.
Backport of 71820721a19f5628b3176f16813d47378cb2c3cb from master
2015-02-25 09:11:43 -05:00
Tim Graham
a9ab8bd4dd [1.8.x] Added release date for 1.7.5 release.
Backport of aca73737da8ba173ad9435b1e9e1fe5d8516f3b3 from master
2015-02-25 09:03:38 -05:00
Tim Graham
b8f9fd7591 [1.8.x] Updated trove classifier to beta. 2015-02-25 08:29:14 -05:00
Tim Graham
3fff408a27 [1.8.x] Bumped version to 1.8 beta 1. 2015-02-25 08:26:23 -05:00
Tim Graham
dfcdf64d47 [1.8.x] Fixed #24411 -- Avoided dict key/method clash in admin delete views.
Backport of 47b35b1844b2adc167e64674824873991e9c4c2b from master
2015-02-25 08:07:25 -05:00
Michael Angeletti
278b698794 [1.8.x] Fixed #24391 -- Made BoundField.value() cache callable values.
Backport of 65441bbdb02427655869c42791a0bc5a9c631292 from master
2015-02-24 20:05:16 -05:00
Tim Graham
81911f29b7 [1.8.x] Reverted "Fixed #24325 -- Documented change in ModelForm.save() foreign key access."
This reverts commit 0af3822dc362b6253bda1c9699466dd0bbbf6066.
It's obsoleted by refs #24395.

Backport of d298b1ba5043eaa40f3f4bebe3c7634b359ba34b from master
2015-02-24 11:51:10 -05:00
Stanislas Guerra
a3fca05b05 [1.8.x] Fixed #24395 -- Ensured inline ModelsForms have an updated related instance.
Backport of 4c2f546b55c029334d22e69bb29db97f9356faa3 from master
2015-02-24 11:49:27 -05:00
Preston Timmons
450b42eafe [1.8.x] Cleaned up template directory handling in template tests.
Backport of 8e129b42ad9c9adca599228ae2ad68271fa46d44 from master
2015-02-24 09:22:25 -05:00
Preston Timmons
b22d20dd18 [1.8.x] Combined TemplateTests and TemplateRegressionTests.
Backport of 32c108a221c54a4f680afe32175d70b5d2e92593 from master
2015-02-24 09:22:20 -05:00
Preston Timmons
2e7414cdf4 [1.8.x] Moved test_token_smart_split into ParserTests.
Backport of 25a0b5cdcd5e70a6563116639a477b915ee5784e from master
2015-02-24 09:22:15 -05:00
Preston Timmons
e15292daa0 [1.8.x] Moved ifchanged tests into syntax_tests/test_if_changed.py.
Backport of 3d8fee605184d8ffa47a32546298b52b52d7a087 from master
2015-02-24 09:22:05 -05:00
Preston Timmons
f3a49c628e [1.8.x] Moved cache tests into syntax_tests/test_cache.py.
Backport of f6d087b628a61a7b036cc468328497082031dc8e from master
2015-02-24 09:21:54 -05:00
Preston Timmons
d8114552a0 [1.8.x] Moved RequestContextTests into test_context.
Backport of 250a3d199310a954a95fb1ffa4915f0e51ba1767 from master
2015-02-24 09:18:28 -05:00
Preston Timmons
c1bf9e47ec [1.8.x] Moved TemplateTagLoading cases into test_custom.
Backport of ff67ce5076c1f4d3dc32fd755a1b65d3310c6cb1 from master
2015-02-24 09:17:45 -05:00
Preston Timmons
272208c124 [1.8.x] Moved include tests into syntax_tests/test_include.py.
Backport of 06ffc764a9b2d2521e6a574d279b66ad411cc65c from master
2015-02-24 09:10:01 -05:00
Preston Timmons
cdb73ec8cd [1.8.x] Moved ssi tests into syntax_tests/test_ssi.py.
Backport of 441a47e1efd46001ca454b80e0d5f8c5ea4e235b from master
2015-02-24 09:09:52 -05:00
Tim Graham
210bf24ddb [1.8.x] Cleaned up template loader tests.
Backport of 1827aa902481cd80d2fb154e7b073f139936d5fc from master
2015-02-24 08:59:05 -05:00
Nik Nyby
3e0df285fd [1.8.x] Fixed typos in flatpages_tests comments.
Backport of 2be6b526568aaaae5353a4a600a085d3c2135363 from master
2015-02-24 06:31:59 -05:00
Aymeric Augustin
e3953de900 [1.8.x] Normalized usage of the tempfile module.
Specifically stopped using the dir argument.

Backport of a8fe12417f778a76837f8e4f8503779f52a396ba from master
2015-02-23 15:26:35 -05:00
Aymeric Augustin
fae31f2348 [1.8.x] Guaranteed removal of temporary files during tests.
Dropped the DJANGO_TEST_TEMP_DIR environment variable.

Before this change, proper removal depended on the developer passing
dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.

Backport of 934400759de817471ff37d736686201d7ae34e82 from master
2015-02-23 15:26:26 -05:00
Kenneth Kam
a752a2c951 [1.8.x] Fixed #23762 -- clarified CACHE_MIDDLEWARE_ANONYMOUS_ONLY deprecation in docs
Backport of e83aba0e2cce16cd1b32d1c172239a4e20867e95 from master
2015-02-23 09:23:49 -05:00
Tim Graham
41d5ed480c [1.8.x] Fixed #24377 -- Fixed model inline formsets with primary key's that have defaults.
Backport of 1306cd1e8acfb13602ee8dc40993b2505cd7523b from master
2015-02-23 09:01:00 -05:00
Ian Lee
04c262aea9 [1.8.x] Broke long lines in code examples.
The website only renders code blocks at 96 chars, and therefore
long code lines get wrapped. Manually breaking the lines prevents
the wrapping from occurring.

Backport of 00fbd8fd527fd6ee0319361bf194cd51a1ac1bfb from master
2015-02-23 07:46:00 -05:00
Emin Mastizada
ff2e0896a3 [1.8.x] Added formats for the Azerbaijani locale.
Backport of dda2a3cf4cc29d01de180f66d19441f300732e52 from master
2015-02-23 07:37:42 -05:00
Anssi Kääriäinen
155a127afb [1.8.x] Fixed #24381 -- removed ForeignObjectRel opts and to_opts
These cached properies were causing problems with pickling, and in
addition they were confusingly defined: field.rel.model._meta was
not the same as field.rel.opts.

Instead users should use field.rel.related_model._meta inplace of
field.rel.opts, and field.rel.to._meta in place of field.rel.to_opts.

Backport of f95122e541df5bebb9b5ebb6226b0013e5edc893 from master
2015-02-23 07:26:10 -05:00
Marten Kenbeek
980dfca717 [1.8.x] Fixed #24366 -- Optimized traversal of large migration dependency graphs.
Switched from an adjancency list and uncached, iterative depth-first
search to a Node-based design with direct parent/child links and a
cached, recursive depth-first search. With this change, calculating
a migration plan for a large graph takes several seconds instead of
several hours.

Marked test `migrations.test_graph.GraphTests.test_dfs` as an expected
failure due to reaching the maximum recursion depth.

Backport of 78d43a5e1064b63db1c486516c4263ef1c4c975c from master
2015-02-23 12:55:43 +01:00
Michael Manfre
ed941ef2d0 Fixed signature of BaseDatabaseOperations.date_interval_sql()
Backport of 7fa7dd48c4 from master
2015-02-23 00:04:57 -05:00
Aymeric Augustin
19c2fe04a8 [1.8.x] Fixed a few uses of Template that relied on a default engine.
Refs #24389.

Backport of 556a748 from master
2015-02-22 23:22:19 +01:00
Tim Graham
ddc1e0c0fb [1.8.x] Updated tutorial to use explicit relative imports.
Backport of b2f331dc68ec3c5a34285f7af9614e4178e9a371 from master
2015-02-22 14:20:25 -05:00
Tim Graham
576c1096d2 [1.8.x] Corrected sqlmigrate output in tutorial 1.
Backport of ff5e47e7a4a638a30424331222e0abdb60842ddd from master
2015-02-22 12:29:39 -05:00
Tim Graham
fbddd946ad [1.8.x] Fixed #24371 -- Cautioned against trying to switch databases.
Backport of 7901eccf2e591447850be00011a7bb556a3c53f2 from master
2015-02-22 10:12:15 -05:00
Aymeric Augustin
c564033408 [1.8.x] Fixed #24389 -- Isolated the CSRF view from the TEMPLATES setting.
Thanks uranusjr for the report and analysis.

Backport of 88a5f17 from master
2015-02-22 15:47:11 +01:00
Sean Wang
f0780df608 [1.8.x] Fixed #24358 -- Corrected code-block directives for console sessions.
Backport of eba6dff581aa8bd6a1c08456e83e68ad09ae4ec3 from master
2015-02-22 09:36:51 -05:00
Michael Angeletti
1feeefe918 [1.8.x] Fixed #24376 -- added verbose_name arg to UUIDField
Backport of ea3168dc6ced391d848c511a14cfcecfeac9d401 from master
2015-02-21 14:26:47 -05:00
Aymeric Augustin
481d3bd617 [1.8.x] Removed obsolete reference to media directory.
Backport of 787dd6519a791f210dc8275eaf2fd41454bf9670 from master
2015-02-21 13:08:15 -05:00
Aymeric Augustin
82e323167d [1.8.x] Removed workaround for SVN limitations.
In addition to simplifying the code, this reduces the number of writes.

Backport of bd059e3f8c6311dcaf8afe5e29ef373f7f84cf26 from master
2015-02-21 13:07:59 -05:00
Aymeric Augustin
de3bda9cd3 [1.8.x] [1.8.x] Avoided collecting admin static files in tests.
This makes the staticfiles tests 2.5 times faster.

Backport of 2bb5b0e09863df65756fe0050406163cb70750f1 from master

Backport of bd059e3f8c6311dcaf8afe5e29ef373f7f84cf26 from master
2015-02-21 13:07:42 -05:00
Aymeric Augustin
5c02c75068 [1.8.x] Removed TestServeAdminMedia.
It should have been removed when the ADMIN_MEDIA_PREFIX setting was deprecated.

Backport of 1d9d39fa1c60896e31360d5f8d6b972979ee7c95 from master
2015-02-21 13:05:11 -05:00
Loic Bistuer
850b2ca794 Removed zombie file again.
Refs 5355baf6c770ac1e5c7f7a4f86ef95042f76b8b4.
2015-02-21 22:34:00 +07:00
Loic Bistuer
1b73c764d4 Fixed a couple of allow_migrate routers in tests.
This reverts commit 88e6fbb2e341657cb5365b9b78fb44e3c7065d2d.
2015-02-21 21:44:05 +07:00
Don Kirkby
5131aec7d2 [1.8.x] Fixed typo in django/db/models/fields/files.py comment.
Backport of 99a1bbf9853e0b06385d7f221a90828e6c060132 from master
2015-02-20 20:11:58 -05:00
foresmac
3207fcd0a0 [1.8.x] Fixed #24341 -- Added specific error messages to RangeField subclasses
Backport of 1d1d5d1c315e0e58f02a7f2a07b56ed20b09c087 from master
2015-02-20 16:50:41 -05:00
Aymeric Augustin
e4e140c49b [1.8.x] Removed a non-obvious side-effect of assigning Context.template.
Explicit is better than implicit.

Backport of 51b606f from master
2015-02-20 22:28:24 +01:00
Tim Graham
88e6fbb2e3 Silenced a deprecation warning in commands_sql test. 2015-02-20 13:24:29 -05:00
Tim Graham
5355baf6c7 Removed an inadvertently added test directory. 2015-02-20 13:16:42 -05:00
Anssi Kääriäinen
6f03a4ca91 [1.8.x] Fixed #24328 -- cleaned up Options._get_fields() implementation
Backport of bad5f262bf4a17f157808ec1aa225ba9c94c1eee from master
2015-02-20 13:11:59 -05:00
Loic Bistuer
3a6c37fce4 [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate().
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.

This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.

Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.

Refs 22583.

Conflicts:
	django/db/utils.py

Backport of bed504d70bede3431a213203c13a33905d6dbf77 from master
2015-02-20 21:55:50 +07:00
Andrei Kulakov
564487601e [1.8.x] Fixed #23932 -- Added how-to on migrating unique fields.
Backport of 1f9e44030e9c5300b97ef7b029f482c53a66f13b from master
2015-02-20 21:53:15 +07:00
Tim Graham
18dceab05b [1.8.x] Fixed typo in path to is_safe_url()
Backport of dd0b487872de4e3ff966da51e3610bac996e44f0 from master
2015-02-20 09:22:17 -05:00
Marc Tamlyn
b6ef67d752 [1.8.x] Fixed #24373 -- Added run_validators to ArrayField.
Thanks to DavidMuller for the report.

Backport of c490e410af from master
2015-02-20 11:53:17 +00:00
Marc Tamlyn
3886338c1d [1.8.x] Update converters to take a consistent set of parameters.
As suggested by Anssi. This has the slightly strange side effect of
passing the expression to Expression.convert_value has the expression
passed back to it, but it allows more complex patterns of expressions.

Backport of 32d4db66b9 from master
2015-02-20 11:47:48 +00:00
Marc Tamlyn
c54d73ae01 [1.8.x] Fixed #24343 -- Ensure db converters are used for foreign keys.
Joint effort between myself, Josh, Anssi and Shai.

Conflicts:
	django/db/models/query.py
	tests/model_fields/models.py

Backport of 4755f8fc25331c739a6f932cc8aba0cc9e62e352 from master.
2015-02-20 11:46:57 +00:00
Alex Vidal
82f39bfb1a [1.8.x] Fixed typo in django.core.servers.basehttp message.
Backport of e467919c6315be87abec72383ec1a81e2665ebec from master
2015-02-19 19:37:22 -05:00
Aymeric Augustin
cc4effba0b [1.8.x] Set context.template instead of context.engine while rendering.
This opens more possibilities, like accessing context.template.origin.

It also follows the chain of objects instead of following a shortcut.

Backport of 1bfcc95 from master
2015-02-19 22:10:56 +01:00
Claude Paroz
84e7fec88d [1.8.x] Fixed #20889 -- Prevented BadHeaderError when Python inserts newline
Workaround for http://bugs.python.org/issue20747.
In some corner cases, Python 2 inserts a newline in a header value
despite `maxlinelen` passed in Header constructor.
Thanks Tim Graham for the review.
Backport of efb1f99f94 from master.
2015-02-19 20:19:38 +01:00
Shai Berger
66d37e593c [1.8.x] Fixed #24307: Avoided redundant column nullability modifications on Oracle
Thanks Joris Benschop for the report, and Tim Graham for the tests.

Backport of ceadc94f09 from master
2015-02-19 02:44:08 +02:00
Shai Berger
e2a3be1e4d [1.8.x] Fixed #24362: Made test run each migration operation in its own schema editor
Thanks Tim Graham for pointing out the fix.

Backport of f7d34fe from master ticket_24362
2015-02-18 22:51:06 +02:00
Marten Kenbeek
84c9b24c5a [1.8.x] Fixed #24291 - Fixed migration ModelState generation with unused swappable models
Swapped out models don't have a _default_manager unless they have
explicitly defined managers. ModelState.from_model() now accounts for
this case and uses an empty list for managers if no explicit managers
are defined and a model is swapped out.

Backport of 15dc8d1c9d3697170a2c59ecaa7a2b4ba58f5990 from master
2015-02-18 19:11:51 +01:00
Adam Chainz
4abadc4872 [1.8.x] Removed unused foreign_key_re variables in MySQL/Oracle DB backends
Backport of e9282747a4ba99adc7e0f677b3a897830df51732 from master
2015-02-18 10:24:40 -05:00
Tim Graham
5068a51d88 [1.8.x] Refs #24324 -- Skipped fixtures_regress tests that fail on Python 2 on a non-ASCII path.
Backport of b8d6cdbcc90ff8af781d13131b79ce88a9eff66d from master
2015-02-18 07:36:02 -05:00
Tim Graham
1153bccc1b [1.8.x] Refs #24324 -- Fixed crash in {% debug %} tag on Python 2.
If Django is installed in a path that contains non-ASCII characters,
the tag failed with UnicodeDecodeError.

Backport of 098fa12dd390e733c7568d824eea2c346550c75a from master
2015-02-18 07:35:56 -05:00
Tim Graham
2aa06e439a [1.8.x] Refs #24324 -- Fixed Python 2 test failures when path to Django source contains non-ASCII characters.
Backport of 307c0f299a6c26f5231d3516df5b4edc54b36553 from master
2015-02-17 19:05:31 -05:00
Tim Graham
09da1b465e [1.8.x] Refs #24324 -- Fixed UnicodeDecodeError in MigrationWriter on Python 2.
Backport of fa66ea75326e669cd3d51fb926a4364b8ba08959 from master
2015-02-17 18:50:15 -05:00
Tim Graham
f9a99c410e [1.8.x] Refs #24324 -- Fixed UnicodeDecodeError in template_backends tests
The message for the SuspiciousFileOperation exception needs to
be a unicode string.

Backport of bebc1e53a3ab059849e5c4e5a55b2f5e68b67169 from master
2015-02-17 18:45:07 -05:00
Tim Graham
ec9119d4ec [1.8.x] Fixed "environment can only contain strings" in model_regress test on Windows.
Backport of ad50b6c853f4a6c864219fbd38b4254ffaef7b1c from master
2015-02-17 13:55:18 -05:00
Tim Graham
e4df10668c [1.8.x] Added an import to docs/topics/testing/advanced.txt example.
Backport of 32b67b3fd1d252566f60cf38fe1459bb83de2ce2 from master
2015-02-17 13:53:57 -05:00
Tim Graham
a1fa0135ec [1.8.x] Refs #24324 -- Fixed get_app_template_dirs() UnicodeDecodeError on Python 2.
The function implemented most of upath(), but skipped the check for
strings that are already unicode.

Backport of bad6280c4e3f75f3ccd27f8fd85a4043bb296128 from master
2015-02-17 08:24:36 -05:00
Tim Graham
ba3a7636f1 [1.8.x] Refs #24324 -- Fixed UnicodeDecodeError in makemigrations.
If the project path contained a non-ASCII character, Python 2 crashed.

Backport of c9ece2e6b9365fa4be16bd0de25dd7b68c8dc97e from master
2015-02-17 08:14:01 -05:00
Tim Graham
4f43e5c435 [1.8.x] Refs #24324 -- Fixed UnicodeEncodeError in SQLite backend while testing.
If 'name' contained non-ASCII characters, the comparison raised a
UnicodeEncodeError on Python 2.

Backport of 63c5c9870129f6b81358c1ed7ed2392bbc46f77d from master
2015-02-17 08:11:38 -05:00
Tim Graham
9dba901d9c [1.8.x] Refs #24324 -- Fixed makemessages crash when Django is installed in a non-ASCII path.
Backport of 81a94cc616ab80decaa495cfa1c0c623527fc0e7 from master
2015-02-17 08:08:28 -05:00
Tim Graham
b2f7daa4a6 [1.8.x] Refs #24324 -- Fixed UnicodeDecodeError in model_regress test on non-ASCII path.
Backport of d316b43d0ab9db0f9913b094b84b11362d36d054 from master
2015-02-17 07:35:00 -05:00
Tim Graham
bcb3bfa5a2 [1.8.x] Refs #24324 -- Fixed management command discovery on non-ASCII paths.
Backport of 4a0aeac1b5cfb7b6229a01119a596afb38d8a2a0 from master
2015-02-17 07:29:30 -05:00
Tim Graham
a00a0f8804 [1.8.x] Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.
Backport of 8b39f33d78ce5749f8ca40a7ae6823b5f6c26c09 from master
2015-02-17 06:35:17 -05:00
Tim Graham
730fb593ad [1.8.x] Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for contrib.postgres).
Backport of 3adc5f1ee6618a615db07d4a868b366a15c39f82 from master
2015-02-17 06:21:59 -05:00
Aymeric Augustin
d027993ed1 [1.8.x] Removed 'autocommit' options for the psycopg2 backend.
It was documented as not having any effect since Django 1.6.

Backport of a73c8540a888021feb640abefa936a76e21b6a1a from master
2015-02-17 06:21:37 -05:00
Aymeric Augustin
30e5356c2e [1.8.x] Cleaned up init_connection_state in the psycopg2 backend.
settings_dict['TIME_ZONE'] is set in ConnectionHandler.ensure_defaults.

Backport of 28e97a9bdc6c672a1304570aa75f6311fb1112e2 from master
2015-02-17 06:21:24 -05:00
Preston Timmons
2b79a35a83 [1.8.x] Removed unnecessary __init__ definition from DebugLexer.
Backport of ad9ecc2c209df3a48fc607f886d57f77ef972546 from master
2015-02-16 18:06:53 -05:00
Tim Graham
ad2c6a756b [1.8.x] Moved contrib.contenttypes tests out of contrib.
Backport of 664c038f2c5b56d1ce929243d29cd4e11ea5f9ea from master
2015-02-16 18:06:13 -05:00
Tim Graham
fb9551189d [1.8.x] Fixed #24350 -- Freshened up database install topic section.
Backport of 35f0cae19de226d9d7771304fc8dd2619e644998 from master
2015-02-16 14:59:57 -05:00
Tim Graham
77e3f7dd58 [1.8.x] Fixed #24299 -- Added an auth migration to ensure contenttypes is migrated.
Without this migration, the auth signal handlers will fail if migrating
only auth.

Backport of 4538cbf17d4391cda22d76bc6ac69f228f7400f2 from master
2015-02-16 14:55:24 -05:00
Markus Holtermann
906d682ba0 Fixed regression in test introduced in d538e37e1b14603d1d0c94f185f378fc0ed1e53f 2015-02-16 20:38:18 +01:00
Tim Graham
50ec49c087 [1.8.x] Removed a note about old versions of MySQLdb.
Backport of f3bc7c5447a1e4bfa428a7ff32ea3336850c5c2d from master
2015-02-16 14:29:30 -05:00
Sergey Fedoseev
870d900cdc [1.8.x] Refs #24299 -- Made contenttypes migrations signal handler more robust.
Backport of d392c1e150a46aca72e37263c44c034d92a79f79 from master
2015-02-16 13:44:04 -05:00
Markus Holtermann
b7cf99a8c3 [1.8.x] Added tests for get_related_models_recursive
Backport of d538e37e1b14603d1d0c94f185f378fc0ed1e53f from master
2015-02-16 19:38:10 +01:00
Markus Holtermann
a1ba462793 [1.8.x] Fixed #24225, #24264, #24282 -- Rewrote model reloading in migration project state
Instead of naively reloading only directly related models (FK, O2O, M2M
relationship) the project state needs to reload their relations as well
as the model changes as well. Furthermore inheriting models (and super
models) need to be reloaded in order to keep inherited fields in sync.

To prevent endless recursive calls an iterative approach is taken.

Backport of b29f3b51204d53c1c8745966476543d068c173a2 from master
2015-02-16 19:38:02 +01:00
Markus Holtermann
4e9ecfee77 [1.8.x] Refs #24282 -- Added failing test case for assigning models of wrong type to FK
Thanks Jeff Singer for the test case.

Backport of 273bc4b667b964b69b15bc438bcdae3dc6529a2a from master
2015-02-16 19:37:57 +01:00
Markus Holtermann
8ca0eb2af7 [1.8.x] Refs #24264 -- Added failing test case for updating a FK when changing a PK
When the primary key column is altered, foreign keys of referencing
models must be aware of a possible data type change as well and thus
need to be re-rendered.

Thanks Tim Graham for the report.

Backport of cc22b009e05456e3d9cf3c152fe47fa27772be5e from master
2015-02-16 19:37:51 +01:00
Claude Paroz
10ea9ef012 [1.8.x] Refs #24225 -- Added failing test case for removing a previously added field in migrations
When a related field is deleted, the related model must be updated. As
unchanged models are shared in migration states, the related model must
be re-rendered so that the change applies to a new copy of the related
model.

Thanks Henrik Heimbuerger for the report.

Backport of 58d0dd9260156067263ea7a2da2685c3cd88e18a from master
2015-02-16 19:37:40 +01:00
Markus Holtermann
681efedce4 [1.8.x] Explicitly checked for LookupError in contenttypes migration
Backport of 4dd1f4c5eb7a617c1ee512e7a7c732d530e13916 from master
2015-02-16 17:14:33 +01:00
Carl Meyer
e63d9b98e7 [1.8.x] Fixed #23892 -- Clarified compatibility policy for migrations.
Backport of e35c70bef44805d47f6a4ae692be878184c4fe1f from master
2015-02-16 10:12:13 -05:00
Marten Kenbeek
bc2eb6bfef [1.8.x] Fixed #24345 -- Isolated sitemaps_tests from contenttypes_tests; refs #11505
Backport of f668bac9d223408627ca92b2281cf7110039510b from master
2015-02-16 08:43:06 -05:00
Tim Graham
ba9f602708 [1.8.x] Added new "W503 line break before binary operator" warning to flake8 ignore.
Backport of d652906aebd34d9ba943507ce0c3a7be169fab7c from master
2015-02-15 20:09:13 -05:00
Aymeric Augustin
e8950668ca [1.8.x] Deprecated TEMPLATE_DEBUG setting.
Backport of 15b711b from master.
2015-02-15 20:48:48 +01:00
Aymeric Augustin
69c662c981 [1.8.x] Documented how to set up the Jinja2 environment.
This may also help with "Why do context processors not work in Jinja2
templates?" etc.

Backport of 9fbd302 from master
2015-02-15 20:44:40 +01:00
Tim Graham
259259a819 [1.8.x] Isolated auth_tests from contenttypes_tests; refs #11505.
Backport of e0b3926026984dccc86a09c0c4f32e8bec6f3fe1 from master
2015-02-14 22:36:49 -05:00
Michael Angeletti
e13dca859c [1.8.x] Added missing return value to DurationField.prepare_value(); refs #24339.
Backport of 49647bec6e86b8d3d370ea1d8a80423185502c5a from master
2015-02-14 18:39:17 -05:00
Aymeric Augustin
87e9cad4a4 [1.8.x] Fixed #24318 -- Set the transaction isolation level with psycopg >= 2.4.2.
Backport of 76356d96 from master
2015-02-14 18:52:28 +01:00
Claude Paroz
a1fc97c1a7 [1.8.x] Fixed #24144 -- Documented that GEOSGeometry.envelope can return a point
Thanks Manel Clos for the report.
Backport of 1379165b35 from master.
2015-02-14 16:20:58 +01:00
Tim Graham
8657e7caaa [1.8.x] Fixed #24325 -- Documented change in ModelForm.save() foreign key access.
Backport of 0af3822dc362b6253bda1c9699466dd0bbbf6066 from master
2015-02-14 08:09:27 -05:00
Michael Angeletti
2e6d8e51db [1.8.x] Fixed #24339 -- Fixed crash with empty DurationField form field.
Backport of 8a21d250334f56845f255be5534b01d8c6eda314 from master
2015-02-14 07:38:20 -05:00
Aymeric Augustin
0f3eb8260b [1.8.x] Fixed #24338 -- Accepted Template wrapper in {% extends %}.
Explicitly checking for django.template.Template subclasses is
preferrable to duck-typing because both the django.template.Template and
django.template.backends.django.Template have a render() method.

Thanks spectras for the report.

Backport of 47ee7b48 from master
2015-02-14 10:36:44 +01:00
Loic Bistuer
20b621eb3c [1.8.x] Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.

Backport of 18c0aaa9123579375294fcc4a8ee7e3530176b88 from master
2015-02-14 02:42:06 +07:00
Andriy Sokolovskiy
136edac897 [1.8.x] Fixed #24320 - Used field.value_to_string() in serialization of foreign key.
This fixes serialization of a ForeignKey to a UUIDField as the
test indicates.

Backport of 5c995dcfc251b55284e1ef16545acd2acad6be04 from master
2015-02-13 12:45:35 -05:00
Joe Simpson
8277f5d7d0 [1.8.x] Added each_context() and a template tip to custom admin view docs.
Backport of 648e516b8d5694c01a225fe27429f0bf7776fb43 from master
2015-02-13 10:38:29 -05:00
Tim Graham
2347f3267f [1.8.x] Fixed #24315 -- Fixed auth.views.password_reset_confirm() with a UUID user.
Backport of 002425fe39f62faafaa32e400f7531809181a1a0 from master
2015-02-13 09:57:44 -05:00
Tim Graham
8fc4840289 [1.8.x] Fixed #24334 -- Allowed admin password reset to work with non-digit custom user model primary key.
Thanks Loic for help and Simon for review.

Backport of fdf20093e0f8cd064673aa1597c20727ed4dd2a0 from master
2015-02-13 09:50:55 -05:00
Markus Holtermann
bd80fa6b0f [1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrations
Previously Django only checked for the table name in CreateModel
operations in initial migrations and faked the migration automatically.
This led to various errors and unexpected behavior. The newly introduced
--fake-initial flag to the migrate command must be passed to get the
same behavior again. With this change Django will bail out in with a
"duplicate relation / table" error instead.

Thanks Carl Meyer and Tim Graham for the documentation update, report
and review.

Backport of f287bec5833d75750fa6368bc2802741b7924533 from master
2015-02-13 15:21:10 +01:00
Markus Holtermann
4ba7d73f94 [1.8.x] Removed explicit pointers to migration modules for contrib apps in runtest
Thanks Tim Graham for the patch

Backport of b4e1090ab28c0e731157a61a91a6875bad392307 from master
2015-02-13 15:21:03 +01:00
Markus Holtermann
45d93baf51 [1.8.x] Refs #22962 -- Made test case use non-conflicting table names
Backport of b06935a486e633e9732bce2bc5f796eb437b2531 from master
2015-02-13 14:39:50 +01:00
Tim Graham
4c948c7c9d [1.8.x] Fixed #24332 -- Fixed contrib.sites create_default_site() when 'default' DATABASES is empty.
Backport of e8cf4f8abec87b9da6ed8e5c8cf833af9b27f4dd from master
2015-02-13 07:02:37 -05:00
Josh Smeaton
47b23ca2ee [1.8.x] Refs #14030 -- Added tests for Value aggregates
Backport of bd4afef98490198e325654952d38a5735ee7e358 from master
2015-02-13 11:24:25 +11:00
Josh Smeaton
1784c326b1 [1.8.x] Fixed #24319 -- Added validation for UUID model field
Backport of de0241eb985c6dec978beda119fee353ef3e9604 from master
2015-02-13 10:01:06 +11:00
Tim Graham
03f4e2d909 [1.8.x] Fixed #24333 -- Fixed admin history view crash with non-integer slug.
Backport of d64baaef3b95abe9ae5d07317c9bf4df02cb8592 from master
2015-02-12 14:20:17 -05:00
Tim Graham
6476fa73d3 [1.8.x] Forwardported item in 1.7.5 release notes.
Backport of a93c5fb2bfbadd4628a2a5d6b6aecbd64bd527cb from master
2015-02-12 14:06:21 -05:00
Thomas Güttler
6b8c8d7e18 [1.8.x] Clarified timeout=0 in cache docs.
Backport of e519ee1d352e0e36fcb8edc9d33ec2845f663d3a from master
2015-02-12 10:32:56 -05:00
Tim Graham
8d1816db87 [1.8.x] Added a test for UUIDField serialization; refs #24320.
Backport of d7509c52466aeffb13ccd8a86475e74fdb0e6292 from master
2015-02-12 10:17:31 -05:00
Tim Graham
7b5aa20a28 [1.8.x] Fixed #17716 -- Prevented include('...', app_name='...') without a namespace.
Backport of 27eeb64a96ec6d3a05714ab6319b500a935706fb from master
2015-02-12 08:19:10 -05:00
Nik Nyby
0ab8ec4312 [1.8.x] Subclassed template.Node instead of Node for consistency.
Backport of 34ccb3cc038ac30b13a7243a3dbd9366c1119746 from master
2015-02-12 08:05:04 -05:00
Tim Graham
596564e808 [1.8.x] Fixed #24161 -- Stored the user primary key as a serialized value in the session.
This allows using a UUIDField primary key along with the JSON session
serializer.

Thanks to Trac alias jamesbeith for the report and Simon Charette
for the initial patch.

Backport of 0f7f5bc9e7a94ab91c2b3db29ef7cf000eff593f from master
2015-02-12 07:40:14 -05:00
Lukas Klein
1904022f91 [1.8.x] Fixed #24321 -- Improved utils.http.same_origin compliance with RFC6454
Backport of 93b3ef9b2e from master.
2015-02-12 09:01:59 +01:00
Josh Smeaton
a6ea62aeaf [1.8.x] Refs #14030 -- Improved expression support for python values
Backport of e2d6e14662d780383e18066a3182155fb5b7747b from master
2015-02-12 08:53:03 +11:00
Collin Anderson
343c087533 [1.8.x] Refs #14497 -- Handled empty readonly admin FileFields
Backport of 07cfe1bd822f4108b5029aef1615a17000d0b0dc from master
2015-02-11 13:01:25 -05:00
Tim Graham
e06971340d [1.8.x] Moved contrib.webdesign tests out of contrib.
Backport of 8ec306a3a90aa2ec0baa4c9d8df68f0d49947a2c from master
2015-02-11 12:35:32 -05:00
Tim Graham
411028df53 [1.8.x] Updated docs and runtests.py for removal of tests from contrib.
Backport of 7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0 from master
2015-02-11 12:05:55 -05:00
Tim Graham
69c89aeccf [1.8.x] Moved contrib.gis tests out of contrib.
Backport of ad0be620aece4dde2f94383426c284f4afef9fbc from master
2015-02-11 12:05:29 -05:00
Tim Graham
2482c9dd24 [1.8.x] Moved non-documented auth test models to the new test location.
Backport of 5ab327a3894c26f57baabe14084bcce2a71b8af8 from master
2015-02-11 12:03:03 -05:00
Tim Graham
e55d888b66 [1.8.x] Moved contrib.auth tests out of contrib.
Backport of 2d7aca3da0a46c09e9c70ebdb56ed340691a999f from master
2015-02-11 12:02:35 -05:00
Tim Graham
44df17d53c [1.8.x] Moved contrib.humanize tests out of contrib.
Backport of 8192a164defa24d75672e6b10cec650489b8c748 from master
2015-02-11 11:55:53 -05:00
Tim Graham
c0f0f93b5d [1.8.x] Moved contrib.redirects tests out of contrib.
Backport of 00da46091a0b35d4822b30e29334de4f4869901e from master
2015-02-11 11:55:40 -05:00
Tim Graham
bbe7964185 [1.8.x] Moved contrib.messages tests out of contrib.
Backport of b3cd9e0d0732e1fd7d2afd5825dda5b3857927da from master
2015-02-11 11:55:05 -05:00
Tim Graham
10fdd2fc1d [1.8.x] Moved contrib.sessions tests out of contrib.
Backport of fac3a34cbb8fd8dc74006f187dd1e83f3a040d39 from master
2015-02-11 11:54:51 -05:00
Tim Graham
e1046a96bc [1.8.x] Moved contrib.sitemaps tests out of contrib.
Backport of fbc467c26bc0adb9867b97d0bb5642b2a85eb357 from master
2015-02-11 11:52:10 -05:00
Tim Graham
0520cfe94a [1.8.x] Moved contrib.sites tests out of contrib.
Backport of d8341bf02444e58ff62afe04f15d9679a1b5b8f8 from master
2015-02-11 11:50:23 -05:00
Tim Graham
36bf6ec9eb [1.8.x] Moved contrib.flatpages tests out of contrib.
Backport of d3a725054fa260e84c788b240fd03cbd0ccc1151 from master
2015-02-11 11:47:58 -05:00
Tim Graham
a0553d1a7c [1.8.x] Prevented some test commands from needlessly running system checks.
This is a performance optimization and also fixes test errors with the
upcoming merge of contrib tests into tests/. The tests failed on MySQL
because the models with GeometryField were being checked but the
non-GIS MySQL backend didn't know how to handle them.

Backport of 197dd4b8f12164f6acebb3b959f9ac2040a40400 from master
2015-02-11 10:17:53 -05:00
Daniel Pyrathon
fdcc9c47d5 [1.8.x] Fixed #24146 -- Allowed model._meta.get_field() to be used after apps.models_ready
Backport of 19188826b4aa989475418f1ea9bf8631b04da1e8 from master
2015-02-10 19:55:42 -05:00
Aymeric Augustin
c6a49d4f17 [1.8.x] Fixed a crash of the debug page.
During the autumn DST change, the template engine would fail to convert
the naive representation of now when USE_TZ = True. Passing now in UTC
eliminates the issue.

Thanks mbertheau and tricoder42.

Refs #23714.

Backport of c7a6996df7e77bc3b9c5e581e67d766627ebabec from master
2015-02-10 19:07:07 -05:00
Loic Bistuer
6e23c9be46 [1.8.x] Ignored flake8 newly added E402 and E731.
Backport of e9874d4cf1f582dd78ad171b4e7ce62f3199390f from master
2015-02-10 19:05:24 -05:00
Loic Bistuer
00f76b018f [1.8.x] Fixed isort import that's inconsistent between platforms.
Backport of c8e24bbc9b027a712b54e3665d27418ae538f15d from master
2015-02-10 18:53:23 -05:00
Josh Smeaton
3518d51697 [1.8.x] Fixed #24200 -- Made introspection bypass statement cache
Backport of 1fbe8a2de3 from master
2015-02-10 23:42:16 +02:00
Aymeric Augustin
9b7b37382c [1.8.x] Split DTL context creation into its own function.
This reduces the length of rope RequestContext gives users to hang
themselves with.

Thanks Alex Hill for the report and Tim Graham for the review.

Backport of f2c104a from master.
2015-02-10 14:35:05 +01:00
Tim Graham
a8b70d251d [1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-02-09 14:24:06 -05:00
Tim Graham
eb406aa686 [1.8.x] Silenced deprecation warning in refs #24287 test. 2015-02-09 12:34:23 -05:00
Tim Graham
9744529c12 [1.8.x] Fixed #24302 -- Added DurationField.formfield()
Backport of 2d7c27d3870e57edd1b2ac46b49f0a8804753a1e from master
2015-02-09 10:21:15 -05:00
jMyles
ac576e9f45 [1.8.x] Fixed #24287 -- Added friendly error if a model is in a models.py outside an installed app. 2015-02-09 09:38:03 -05:00
Tim Graham
64a9540829 [1.8.x] Added isort config to ease resolving merge conflicts. 2015-02-09 09:16:23 -05:00
Tim Graham
6e50fc9246 [1.8.x] Removed unnecessary parentheses in model check messages.
Backport of e144e0e237136f8bf1831f645c3dde4541d629b0 from master
2015-02-09 08:57:02 -05:00
Aron Podrigal
eb9fbc0b1d [1.8.x] Fixed #24249 -- Improved field shadowing validation in model multi-inheritance.
Backport of 4d73303ee974c5f1ea6af984d4578d817825026d from master
2015-02-09 08:43:40 -05:00
Aymeric Augustin
8cb2cfdda5 [1.8.x] Called parent in SimpleTestCase.setUpClass/tearDownClass.
Backport of 146dd7be8dad4cd6264d374b681256a8b0d5808b from master
2015-02-08 21:31:28 -05:00
Claude Paroz
cd260d03bd [1.8.x] Replaced hardcoded URLs in admin_* tests
Refs #15779. This will allow easier admin URL changes, when needed.
Thanks Simon Charette for the review.

Backport of 32e6a7d3a57b2287d55e8b8efa4e8cb7643b1720 from master
2015-02-08 15:12:07 -05:00
Alex Gaynor
d54638727a [1.8.x] Simplified the lazy CSRF token implementation in csrf context processor.
This significantly improves performance on PyPy. The previous
implementation would generate a new class on every single request,
which is relatively slow.

Backport of 8099d33b6553c9ee7de779ae9d191a1bf22adbda from master
2015-02-08 15:03:29 -05:00
Alex Gaynor
ee86bf24d2 [1.8.x] Optimized allow_lazy() by not generating a new lazy wrapper on each invocation.
This dramatically improves performance on PyPy. The following benchmark:

python -mtimeit -s "from django.utils.functional import allow_lazy; from django.utils.translation import ugettext_lazy; f = allow_lazy(lambda s: s, str)" "f(ugettext_lazy('abc'))"

goes from 390us per loop to 165us.

Backport of 82e0cd15711c7171aed7af5e481967cc721c9642 from master
2015-02-08 14:57:19 -05:00
Varun Sharma
b44a56c308 [1.8.x] Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertion
Report and original patch by Kay Cha.
Backport of 540ca563de from master.
2015-02-08 20:09:04 +01:00
Markus Holtermann
edbf6de753 [1.8.x] Revert "Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth"
This reverts commit 737d24923ac69bb8b89af1bb2f3f4c4c744349e8.

Backport of 2832a9b028c267997b2fd3dd0989670d57cdd08f from master
2015-02-07 20:35:20 +01:00
Markus Holtermann
b2b5ea88b7 [1.8.x] Revert "Refs #24075 -- Silenced needless call_command output while running tests"
This reverts commit 51dc617b21e67636d96cf645905797a4d6ff4bf0.

Backport of bd3d796ecd9a66832ad26024df65caeb63b60a5d from master
2015-02-07 19:52:50 +01:00
Peter Inglesby
b6323302e0 [1.8.x] Fixed docs typo
Backport of a8f1c70dce792831688588f271efb3a825dffef8 from master
2015-02-07 18:47:17 +01:00
Collin Anderson
fc8e1e0c10 [1.8.x] Fixed E265 comment style
Backport of db77915c9fd35a203edd8206f702ee4082f04d4a from master
2015-02-06 09:35:08 -05:00
Tim Graham
232a1d297c [1.8.x] Removed django-2to3.py
Aymeric says, "It was fun to write, but I don't think it's very useful."

Backport of 607af78bb82404d55cc3e80e5f6772fb87c168ee from master
2015-02-06 08:56:01 -05:00
Tim Graham
289660f52d [1.8.x] Removed bin/unique-messages.py
This script is no longer used according to Claude, our translations manager.

Backport of eb45a29565fe006b87657e9ee24054c66a6474f9 from master
2015-02-06 08:55:10 -05:00
Tim Graham
6adc23d6b6 [1.8.x] Removed gather_profile_stats.py
This script uses the unmaintained hotshot module (gone on Python 3)
and doesn't seem to be Django specific in any way.

Backport of 388d986b8a6bb1363dab9f53ea435dff4dfe92cb from master
2015-02-06 08:55:02 -05:00
minusf
5bc9904b35 [1.8.x] Removed inaccurate sentence about PO files in translation docs.
Backport of aea103b6a599a5e4c71a355b2cac237f067be13b from master
2015-02-06 07:46:14 -05:00
Tim Graham
fc1e9107d7 [1.8.x] Added UUIDField.deconstruct()
Backport of 0f54cf28c09a80254571487e3af93be2096cfdac from master
2015-02-05 19:15:37 -05:00
Markus Holtermann
c9addfd4bf [1.8.x] Fixed small regression caused by e3702dc3f2af9e8cc6c1155b248f458899be334e
Since 1.7 models need to declare an explicit app_label if they are not
in an application in INSTALLED_APPS or were imported before their
application was loaded.

Backport of 235124d3eaf6cc7ab9f97f1d1467d1caf18e1016 from master
2015-02-06 00:50:42 +01:00
Markus Holtermann
e3702dc3f2 [1.8.x] Cleaned up schema tests
Thanks Tim Graham for the review.

Backport of 0204714b0bdf10d7558ee106de9a718407f3ec5a from master
2015-02-05 20:15:18 +01:00
Aymeric Augustin
aed1b1f6e5 [1.8.x] Fixed #24265 -- Preserved template backend loading exceptions.
If importing or initializing a template backend fails, attempting to
access this template backend again must raise the same exception.

Backport of 44ad6915 from master
2015-02-05 20:09:22 +01:00
Aymeric Augustin
67787db22a [1.8.x] Caught all exceptions raised by Engine.get_default().
In addition to ImproperlyConfigured, Engine.get_default() may also raise
ImportError or other exceptions. It's better to catch all exceptions in
places where the default engine isn't strictly required.

Backport of 27f9ff45 from master
2015-02-05 20:09:10 +01:00
Aymeric Augustin
5fbec369aa [1.8.x] Fixed #24273 -- Allowed copying RequestContext more than once.
Thanks Collin Anderson for the report.

Backport of 31d3a355 from master
2015-02-05 14:07:18 +01:00
Tom Christie
f5749252ea [1.8.x] Improved nested ArrayField example
Backport of 737b184d914d5cc4a6ed8fe2a1d66ec1b7369f46 from master
2015-02-05 11:35:23 +01:00
Matthew Somerville
2a55301f9f [1.8.x] Fixed #24242 -- Improved efficiency of utils.text.compress_sequence()
The function no longer flushes zfile after each write as doing so can
lead to the gzipped streamed content being larger than the original
content; each flush adds a 5/6 byte type 0 block. Removing this means
buf.read() may return nothing, so only yield if that has some data.
Testing shows without the flush() the buffer is being flushed every 17k
or so and compresses the same as if it had been done as a whole string.

Backport of caa3562d5bec1196502352a715a539bdb0f73c2d from master
2015-02-04 15:17:22 -05:00
mlavin
d585ade0df [1.8.x] Fixed #24197 -- Added clearing of staticfiles caches on settings changes during tests
Cleared caching in staticfiles_storage and get_finder when
relevant settings are changed.

Backport of 2730dad0d7c425f33f1ecc6cec01fdbf1cdd8376 from master
2015-02-04 10:54:33 -05:00
Riccardo Magliocchetti
4957b8a406 [1.8.x] Fixed #14497 -- Improved admin widget for "read only" FileFields
Based on patch by Adam J Forster, Paul Collins, and Julien.

Backport of 2be621e44c1b5b68c895383f3e20b1f17ddb447a from master
2015-02-04 09:05:41 -05:00
Josh Schneier
16e3910e9c [1.8.x] Fixed typos of "select_related" in docs and tests.
Backport of 7d363ed43247a80d2b764723e1bf6e0e6da4e82f from master
2015-02-04 07:32:34 -05:00
Aron Podrigal
fc49e73648 [1.8.x] Fixed #15321 -- Honored ancestors unique checks.
Thanks to Tim for the review.

Backport of 79f27f2b61aeac763ae048416ef8a97c2b639ae8 from master
2015-02-03 18:58:48 -05:00
Tim Graham
3e24ab6f4c [1.8.x] Refactored tests that rely on an ImportError for Python 3.5 compatibility
A change in Python test discovery [1] causes the old packages that raised
an error to be discovered; now we use a common directory that's
ignored during discovery. Refs #23763.

[1] http://bugs.python.org/issue7559

Backport of c0cc8f69e7abfa8578729031f97ae4b96c5cdafe from master
2015-02-03 18:31:17 -05:00
Simon Charette
cbcf92e95f [1.8.x] Fixed #24266 -- Changed get_parent_list to return a list ordered by MRO.
Thanks to Aron Podrigal for the initial patch and Tim for the review.

Backport of 65e005f8cd9c656e558e53e6c8b890cd0fcc9e74 from master
2015-02-03 16:41:51 -05:00
Tim Graham
dd83bab931 [1.8.x] Demoted "Installing a distribution-specific package" in install notes.
Backport of 281fc03474ac18c8281ed4cf289128c87bda2030 from master
2015-02-03 16:38:05 -05:00
Tim Graham
92d5bedc56 [1.8.x] Reverted "Fixed #24146 -- Fixed a missing fields regression in admin checks."
This reverts commit e8171daf0cd7f0e070395cb4c850c17fea32f11d.

A new solution is forthcoming.

Backport of 0e489c19f1554ecfd9825daacfbac73be8ce723e from master
2015-02-03 15:24:24 -05:00
Tim Graham
ff39de1e1e [1.8.x] Added a "Writing migrations" how-to.
Backport of 570912a97d5051fa3aeacd9d16c3be9afcf92198 from master
2015-02-03 13:46:56 -05:00
minusf
b35c226154 [1.8.x] Fixed typos in docs/ref/forms/validation.txt.
Backport of 66f5aa9fa5d53ddd7fbdb7ddac39c429f0c1b4fd from master
2015-02-03 12:27:16 -05:00
Claude Paroz
ea3e40c278 [1.8.x] Fixed #24252 -- Forced lazy __str__ to utf-8 on Python 2
Thanks Stanislas Guerra for the report and Tomas Ehrlich for
the review.
Backport of cd0ceaa102 from master.
2015-02-03 18:26:08 +01:00
Matthew Somerville
d88c24f436 [1.8.x] Fixed #24240 -- Allowed GZipping a Unicode StreamingHttpResponse
make_bytes() assumed that if the Content-Encoding header is set, then
everything had already been dealt with bytes-wise, but in a streaming
situation this was not necessarily the case.

make_bytes() is only called when necessary when working with a
StreamingHttpResponse iterable, but by that point the middleware has
added the Content-Encoding header and thus make_bytes() tried to call
bytes(value) (and dies). If it had been a normal HttpResponse,
make_bytes() would have been called when the content was set, well
before the middleware set the Content-Encoding header.

This commit removes the special casing when Content-Encoding is set,
allowing unicode strings to be encoded during the iteration before they
are e.g. gzipped. This behaviour was added a long time ago for #4969 and
it doesn't appear to be necessary any more, as everything is correctly
made into bytes at the appropriate places.

Two new tests, to show that supplying non-ASCII characters to a
StreamingHttpResponse works fine normally, and when passed through the
GZip middleware (the latter dies without the change to make_bytes()).
Removes the test with a nonsense Content-Encoding and Unicode input - if
this were to happen, it can still be encoded as bytes fine.

Backport of 250aa7c39b from master.
2015-02-03 18:19:06 +01:00
Anssi Kääriäinen
43b0131fb5 [1.8.x] Fixed #23617 -- Added get_pk_value_on_save()
The method is mainly intended for use with UUIDField. For UUIDField we
want to call the field's default even when primary key value is
explicitly set to None to match the behavior of AutoField.

Thanks to Marc Tamlyn and Tim Graham for review.

Backport of 8adc59038cdc6ce4f9170e4de2d716d940e136b3 from master
2015-02-03 09:25:55 -05:00
Tim Graham
9ffe013caa [1.8.x] Fixed #24263 -- Prevented extra queries on BaseDateDetailView with a custom queryset.
Thanks jekka-ua for the report and patch.

Backport of 118b11221f7f632b4d0e6e976c87f563746ec211 from master
2015-02-03 09:13:10 -05:00
Tim Graham
5fdd74f4be [1.8.x] Fixed broken links in class based views flattend index; refs #24250.
Backport of 9a391fbd6102176d576aa96ed3aeee9e9661b455 from master
2015-02-03 09:12:08 -05:00
Tim Graham
6454716264 [1.8.x] Fixed #24250 -- Corrected mistakes in FormMixin docs.
Backport of 5d193d042a3cc49033f0e8b5125913650d779496 from master
2015-02-03 08:42:49 -05:00
Tim Graham
c65c8f5696 [1.8.x] Skipped tests from refs #24168 on Python 3.2. 2015-02-03 08:21:06 -05:00
Aymeric Augustin
f87457a460 [1.8.x] Fixed #24168 -- Allowed selecting a template engine in a few APIs.
Specifically in rendering shortcuts, template responses, and class-based
views that return template responses.

Also added a test for render_to_response(status=...) which was missing
from fdbfc980.

Thanks Tim and Carl for the review.

Backport of 2133f31 from master.

Conflicts:
	docs/topics/http/shortcuts.txt
	tests/generic_views/test_base.py
2015-02-03 08:32:14 +01:00
Tim Graham
3af1e7860e [1.8.x] Removed contrib.auth.forms.mask_password()
This function is unused since dce820ff70f00e974afd3e6e310aa825bc55319f
after being introduced in 718a5ba1a1a77374c26b134ded46dab13776d1a1

Backport of a53541852d5601232899e54d66e623bc163c6dc2 from master
2015-02-02 11:13:48 -05:00
Matt Westcott
ef90ca5f42 [1.8.x] Fixed #24255 -- Specifed 'fields' parameter in modelformset_factory / inlineformset_factory examples.
Backport of 8d64aae883f7721c33f88276e7c999844085659f from master
2015-02-02 10:47:42 -05:00
Tim Graham
3cd8f51f21 [1.8.x] Removed query.alias_diff()
This function is unused since 6fe2b001dba45134d7c10729c57959995e241a88

Backport of f79ce63fdb6788c8b4857fece6c86de57fc129ee from master
2015-02-01 21:38:34 -05:00
Tim Graham
6d0538bd8c [1.8.x] Simplified a versionchanged notes for LiveServerTestCase. 2015-02-01 21:06:27 -05:00
Tim Graham
c9df163d0c [1.8.x] Removed UpdateCacheMiddleware._session_accessed()
This method is unused since f567d04b249913db4a37adab8ba521cdc974d423

Backport of 0e6091249295b0e06aff2b1b4411819f94a1c529 from master
2015-02-01 20:35:57 -05:00
Tim Graham
7580876fbd [1.8.x] Removed Query.raise_field_error()
This method was inadvertently reintroduced in
f59fd15c4928caf3dfcbd50f6ab47be409a43b01

Backport of 99ca7c2bd3e04b343f4a0fe2d5add7c6d6f3a456 from master
2015-02-01 20:26:43 -05:00
Tim Graham
26e07a996d [1.8.x] Removed InlineAdminForm.field_count()
This method is unused since 337d102b8612503bb9dc712bfbf07432a9a96302

Backport of 327a00f48b71b5f82788f3c9ee3cdb25b8e1ef1a from master
2015-02-01 20:13:58 -05:00
Tim Graham
fe770a6452 [1.8.x] Fixed expressions test on Python 3.5; refs #23763.
Backport of 62df1834b8d60c106c8c16524b275b8a1f47ac3a from master
2015-02-01 20:11:40 -05:00
Tim Graham
c9e538b174 [1.8.x] Removed threading fallback imports.
Django imports threading in many other places without fallback.

Backport of 18f3e79b13947de0bda7c985916d5a04e28936dc from master
2015-02-01 18:45:01 -05:00
Tim Graham
0fc2f94699 [1.8.x] Removed PostgreSQL DatabaseWrapper._set_isolation_level().
This method is unused since 8717b0668caf00ec5e81ef5a1e31b4d7c64eee8a.

Backport of 64a899dc815f1a070dc7a7c22276e8bb41e46ea6 from master
2015-01-31 11:06:03 -05:00
Tim Graham
28bb0ad199 [1.8.x] Fixed #24208 -- Documented changes in private model relations.
Backport of 888054bff7c5878e026bac2e712d5480f7e295c7 from master
2015-01-31 11:03:08 -05:00
Claude Paroz
c77dd64402 [1.8.x] Fixed #14483 -- Allowed using subqueries with GIS lookups
Backport of a0b5f15ea5f from master.
2015-01-30 20:29:05 +01:00
Tim Graham
7060ef7158 [1.8.x] Reverted "Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows."
This reverts commit da79ccca1d34f427952cce4555e598a700adb8de.

This optimized the unsuccessful case at the expense of the successful one.

Backport of 293fd5da5b8c7b79bd34ef793ab45c1bb8ac69ea from master
2015-01-30 12:52:39 -05:00
Andrei Kulakov
3d3c7a62c8 [1.8.x] Updated recommendation for testing keyword arg in custom fields.
Backport of dbabf43920bfd99f0e720c7c20228c17128a2af8 from master
2015-01-30 08:30:03 -05:00
Tim Graham
df68751134 [1.8.x] Fixed #24164 -- Fixed Oracle GIS limited aggregation test failure.
Backport of 29c0073335c7f7cdc482866e093e5e42a42625e5 from master
2015-01-30 06:34:36 -05:00
Simon Charette
a301061f88 [1.8.x] Fixed #23940 -- Allowed model fields to be named exact.
An explicit `__exact` lookup in the related managers filters
was interpreted as a reference to a foreign `exact` field.

Thanks to Trac alias zhiyajun11 for the report, Josh for the investigation,
Loïc for the test name and Tim for the review.

Backport of eb4cdfbdd64a95b303eaaa40a070521aa58362fd from master
2015-01-29 14:42:28 -05:00
Matt
7b92acea70 [1.8.x] Fixed #24223 -- Prevented a session test from leaking.
Backport of 55c76f4e3bab74c8544b72d11a99e94a1c2cfbce from master
2015-01-29 14:37:33 -05:00
Tim Graham
d0c343372f [1.8.x] Removed ForeignObjectRel.get_lookup_constraint() [unused].
Backport of f60973111806100d284d41c12206c04740063549 from master
2015-01-29 14:12:35 -05:00
Reza Mohammadi
590ee3ed16 [1.8.x] Fixed Persian locale FIRST_DAY_OF_WEEK & DECIMAL/THOUSAND_SEPARATORs.
Reference: http://lh.2xlibre.net/locale/fa_IR/

Backport of f1ff9407c94c4574d100efc3d224c1f79e2fb53d from master
2015-01-29 13:02:49 -05:00
Emin Mastizada
6002393a97 [1.8.x] Updated Azerbaijani language name.
Backport of 0f3ea8c0bc9c7f7f5e448b0b2137bc6351f5eae3 from master
2015-01-28 06:48:48 -05:00
Tim Graham
df7cca6dff [1.8.x] Added stub 1.7.5 release notes.
Backport of ac6033d8835ac54c1222801f6aeb47f9997b517a from master
2015-01-28 06:39:11 -05:00
Josh Smeaton
f858b51ee3 [1.8.x] Refs #14030 -- Renamed CombinableMixin to Combinable
Removed unused method and updated docstrings.

Backport of 14d0bd67d4bcf55f8a0a2b01433571a8b714121f from master
2015-01-28 11:04:12 +11:00
Josh Smeaton
6c68e40e6e [1.8.x] Refs #14030 -- Added repr methods to all expressions
Backport of 7171bf755b0c4be85ddbcc164eaf87164c131021 from master
2015-01-28 11:03:39 +11:00
Josh Smeaton
405351ba2f [1.8.x] Refs #24060 -- Added a test demonstrating reverse order isn't mutable
Backport of f218a2ff455b5f7391dd38038994f2c5f8b0eca1 from master
2015-01-28 11:03:25 +11:00
Raul Cumplido
7cc1b4710e [1.8.x] Fixed #24209 -- Prevented crash when parsing malformed RFC 2231 headers
Thanks Tom Christie for the report and review.
Backport of ac650d02cb from master.
2015-01-27 20:16:53 +01:00
Markus Holtermann
29fa0e3c66 [1.8.x] Corrected naming of method and attribute
Backport of 335df82a3f13877220712090eb455a32eea87421 from master
2015-01-27 19:48:46 +01:00
Tim Graham
617121cd4a [1.8.x] Added 1.4.19 release notes.
Backport of 6f8418089c5e81d12718187da2140394ed30da43 from master
2015-01-27 11:48:27 -05:00
Markus Holtermann
645fe136c4 [1.8.x] Refs #24104 -- Added missing release notes
Forwardport of 3d4a826174b7a411a03be39725e60c940944a7fe from stable/1.7.x
2015-01-27 16:05:27 +01:00
Josh Smeaton
e56810e839 [1.8.x] Fixed #24154 -- Backends can now check support for expressions
Backport of 8196e4bdf498acb05e6680c81f9d7bf700f4295c from master
2015-01-27 14:47:38 +11:00
Tomáš Ehrlich
5dff3513cc [1.8.x] Fixed #24220 - Allowed lazy objects for success_url
Backport of 511be35779a98427387d9aa4abacce01dedd7272 from master
2015-01-26 12:42:08 -05:00
Tomáš Ehrlich
2d990fb7fa [1.8.x] Fixed #24221 - Used precompiled regexp for percent-placeholder matching.
Backport of ea0ea7859a224225950a4df7c23eb3a7d823ddcd from master
2015-01-26 10:49:55 -05:00
Collin Anderson
09e8985f25 [1.8.x] Fixed #24190 -- Clarified len(queryset)
Backport of ee23e03637aa8b82311f93b0a660574a0512891a from master
2015-01-24 10:18:14 -05:00
Tim Graham
242c9538c8 [1.8.x] Fixed test_runner test failure on Python 3.5; refs #23763.
Python change is http://bugs.python.org/issue22032

Backport of 0386b97706052b88cd6fbbf777698810981cfeb6 from master
2015-01-23 16:42:33 -05:00
Tim Graham
1ee18a6046 [1.8.x] Moved imports in GIS tests to avoid failure if dependencies aren't installed.
Backport of 1e219ac62f3313f5a5f8eb188240a11bedd41aa1 from master
2015-01-23 16:20:08 -05:00
Ng Zhi An
56015c01c4 [1.8.x] Fixed #24170 -- Implemented decompress for BaseRangeField widgets
Backport of 4669b6a807811d6763b9fdc5df974cb67aa1fb56 from master
2015-01-23 15:07:03 -05:00
Tim Graham
2ed1980e0f [1.8.x] Clarified docstring in dispatch/dispatcher.py
Backport of 851f5bd413a93708436a129442007448755b34f3 from master
2015-01-23 13:00:24 -05:00
Claude Paroz
bc93568500 [1.8.x] Fixed warning leak in static.serve() test
Partial forward port of b1bf8d64fb from 1.7.x. Refs #24193.
2015-01-23 09:05:46 +01:00
Tim Graham
1806e059f6 [1.8.x] Isolated a flatpages test; refs #11505.
Backport of 4135d837027eac43ec416856d9476c478167d8a6 from master
2015-01-22 15:50:26 -05:00
Andriy Sokolovskiy
11a5e45b96 [1.8.x] Fixed #24104 -- Fixed check to look on field.many_to_many instead of class instance
Backport of 38c17871bb6dafd489367f6fe8bc56199223adb8 from master
2015-01-22 18:53:47 +01:00
Loic Bistuer
0580133971 [1.8.x] Fixed small inconsistency when handling aggregate's default_alias.
Refs #14030.

Backport of d450af8a26 from master
2015-01-22 08:02:07 +07:00
Adam Taylor
45aaced91e [1.8.x] Fixed typos in code comments.
Backport of 039465a6a7a18f48ea77ceadb6949990c0ec92e1 from master
2015-01-20 12:18:29 -05:00
Simon Charette
90d9bf5ba4 [1.8.x] Fixed #24186 -- Fixed a typo in the admin docs.
Thanks to Keryn Knight for the report.

Backport of dccf41cff0f46a94aa1d853d1bad9052079bb454 from master
2015-01-20 11:56:02 -05:00
Markus Holtermann
20f1aafa14 [1.8.x] Refs #24163 -- Fixed failing Oracle test when migrating from ForeignKey to OneToOneField
Thanks Tim Graham for review

Backport of 64ecb3f07db4be5eef4d9eb7687f783ee446c82f from master
2015-01-20 17:45:29 +01:00
Tim Graham
cb90d489da [1.8.x] Fixed a query failure on Python 3.5; refs #23763.
The failure was introduced in Django by
c7fd9b242d2d63406f1de6cc3204e35aaa025233 and the change in
Python 3.5 is https://hg.python.org/cpython/rev/a3c345ba3563.

Backport of be1357e70983d4ad029a1ecdd05292f8be917a80 from master
2015-01-20 08:15:39 -05:00
Marc Tamlyn
c80b2144d2 [1.8.x] Fixes #24169 -- More arrayfield specific lookups.
varchar()[] cannot compare itself to text[]

Thanks to joelburton for the patch.

Backport of 0ae94d0d31 from master
2015-01-20 10:26:32 +00:00
Josh Smeaton
504cd5d3be [1.8.x] Fixed #24183 -- Fixed wrong comparisons in Substr
Backport of 61c102d010ef480cebe576cc1576d1101975925c from master
2015-01-20 12:11:27 +11:00
Fabio C. Barrionuevo da Luz
e69eea73d9 [1.8.x] Fixed #24177 -- Added documentation about database view support in inspectdb
Backport of bd691f4586c8ad45bd059ff9d3621cbf8afdcdce from master
2015-01-20 01:09:08 +01:00
Tim Graham
06fa019c1b [1.8.x] Fixed #24153 -- Fixed cookie test compatibility with Python 3.4.3+
Backport of b19b81b3960ec2090d40be65547502a3386a769b from master
2015-01-19 15:39:36 -05:00
Markus Holtermann
e55cb91bd4 [1.8.x] Fixed #24163 -- Removed unique constraint after index on MySQL
Thanks Łukasz Harasimowicz for the report.

Backport of 5792e6a88c1444d4ec84abe62077338ad3765b80 from master
2015-01-19 16:55:25 +01:00
Tim Graham
0b3e3e21cf [1.8.x] Added deprecation docs for legacy lookup support; refs #16187.
Backport of 8e435a564034c59ac408ec71283d8ac6ede2ce1f from master
2015-01-19 10:45:50 -05:00
Claude Paroz
6eddaa42c3 [1.8.x] Fixed header of contrib.postgres translation catalog
Backport of eb6e12ca6f from master.
2015-01-19 10:19:42 +01:00
Tim Graham
dd0707c3ca [1.8.x] Added missing items to deprecation timeline/1.7 release notes.
Backport of ecf109f2159f4581adb354263406116c2bda11d7 from master
2015-01-18 21:24:09 -05:00
Josh Smeaton
0c910823c1 [1.8.x] Fixed #24174 -- Fixed extra order by descending
Backport of 69c6a6868f0b4137bb293ff4326ecf4681506c37 from master
2015-01-19 13:18:09 +11:00
Tim Graham
511ef69194 [1.8.x] Removed a flake8 exclude that caused code to be missed.
Backport of 2fa2068406cbef08bac3e2da9b69e86c6b931f57 from master
2015-01-18 20:48:35 -05:00
Tim Graham
663db8ea2a [1.8.x] Removed usage of deprecated removetags in a template test.
Backport of b84100e8e22b175b62ce849acbcf1fa9a1e0e5b8 from master
2015-01-18 18:33:56 -05:00
Tim Graham
559e15a23a [1.8.x] Removed an obsolete comment in django/apps/config.py
Backport of bd98926f0eb19d27821a8a7679b42ff46e53e4da from master
2015-01-18 16:31:21 -05:00
Tim Graham
f31ed5c934 [1.8.x] Clarified deprecation of forms.forms.get_declared_fields(); refs #19617.
Backport of 89e9f81601f7a343690e1153e70fd56091246d0b from master
2015-01-18 16:07:44 -05:00
Claude Paroz
8c8a1a0846 [1.8.x] Added contrib.postgres translation catalog 2015-01-18 21:01:42 +01:00
Tim Graham
4af4ccfb30 [1.8.x] Clarified deprecation of test.utils.TestTemplateLoader.
Backport of 7468c948b6e7830082c939e0f43e2bd780c90527 from master
2015-01-18 14:20:15 -05:00
Tim Graham
390559a75c [1.8.x] Clarified a contrib.sites deprecation and added to 1.7 release notes.
Backport of ba27f895878bb155fefb8c1b9beee2c9f3d85b3f from master
2015-01-18 13:44:53 -05:00
Tim Graham
737cd4ff3d [1.8.x] Clarified contrib.contenttypes.generic deprecation; refs #19774. 2015-01-18 13:43:02 -05:00
Tim Graham
8822d0bf7d [1.8.x] Removed usage of deprecated dumpdata options in docs.
Backport of 1d975ff44bc23efaf0ebf3e96cc35539d80bd244 from master
2015-01-17 20:15:09 -05:00
Tim Graham
a41d41046a [1.8.x] Added removal of check management command to deprecation timeline.
Backport of 20e4e8fc79af9a87fb48951d03d3747f1f550551 from master
2015-01-17 19:15:59 -05:00
Tim Graham
7cfcdd98dc [1.8.x] Added versionadded to ModelAdmin.get_formsets_with_inlines(); refs #20702. 2015-01-17 18:12:47 -05:00
Markus Holtermann
5512338d4f [1.8.x] Cleaned up migration writer tests
Backport of 65d55c409343aab7c2ae771c459720ef797b4cdb from master
2015-01-17 20:42:58 +01:00
Tim Graham
a58a120021 [1.8.x] Standardized indentation in docs/howto/custom-management-commands.txt. 2015-01-17 13:27:59 -05:00
Tim Graham
bfa3478850 [1.8.x] Replaced deprecated requires_model_validation in docs.
Backport of 18192b9fa4387d5e6c677a7929d91ce04f92cda7 from master
2015-01-17 12:52:30 -05:00
Tim Graham
9f86d86c62 [1.8.x] Updated tutorial 1 with actual migrate output. 2015-01-17 10:46:27 -05:00
Claude Paroz
6b1b7263f4 [1.8.x] Fixed PostGIS crosses lookup and added crosses test
Backport of aff0e54d5 from master.
2015-01-17 15:46:50 +01:00
Tim Graham
b714316c06 [1.8.x] Documented django.utils.timezone.FixedOffset; thanks Aymeric.
Backport of 25264d4e2a4b3fd6a25e6b617388ea24f3d48d63 from master
2015-01-17 09:31:56 -05:00
Claude Paroz
666c12e529 [1.8.x] Updated en translation catalogs 2015-01-17 11:18:45 +01:00
Claude Paroz
dec5157a72 [1.8.x] Complemented test about non-supported aggregation exception
Backport of d69ecf922dd from master.
2015-01-17 10:04:38 +01:00
David Robles
eb6a07e069 [1.8.x] Fixed typo in 'Django Template Language'
Backport of d60b96d98881b47c845125e82269ea6a9b268fbb from master
2015-01-17 03:06:26 +01:00
Tim Graham
8be1b8b488 [1.8.x] Bumped django_next_version in docs config. 2015-01-16 18:30:49 -05:00
Rick Hutcheson
801287bff2 [1.8.x] Fixed a typo in the test responses docs.
Backport of 996292d6498d25c6b3e84435e82edeff5aaa0257 from master
2015-01-16 18:24:44 -05:00
Tim Graham
c72448b597 Bumped version to 1.8 alpha 1. 2015-01-16 17:06:32 -05:00
3629 changed files with 42792 additions and 96578 deletions

2
.gitignore vendored
View File

@ -6,6 +6,8 @@ MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/

View File

@ -8,6 +8,8 @@ MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/

View File

@ -52,6 +52,11 @@ file_filter = django/contrib/messages/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/messages/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-postgres]
file_filter = django/contrib/postgres/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/postgres/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-redirects]
file_filter = django/contrib/redirects/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/redirects/locale/en/LC_MESSAGES/django.po

13
AUTHORS
View File

@ -17,6 +17,7 @@ answer newbie questions, and generally made Django that much better:
Ahmad Al-Ibrahim
ajs <adi@sieker.info>
Akis Kesoglou <akiskesoglou@gmail.com>
Aksel Ethem <aksel.ethem@gmail.com>
alang@bright-green.com
Alasdair Nicol <http://al.sdair.co.uk/>
Albert Wang <aywang31@gmail.com>
@ -280,6 +281,7 @@ answer newbie questions, and generally made Django that much better:
Ian Clelland <clelland@gmail.com>
Ian G. Kelly <ian.g.kelly@gmail.com>
Ian Holsman <http://feh.holsman.net/>
Ian Lee <IanLee1521@gmail.com>
Ibon <ibonso@gmail.com>
Idan Gazit <idan@gazit.me>
Igor Kolar <ike@email.si>
@ -309,6 +311,7 @@ answer newbie questions, and generally made Django that much better:
Jason Yan <tailofthesun@gmail.com>
Javier Mansilla <javimansilla@gmail.com>
Jay Parlar <parlar@gmail.com>
Jay Wineinger <jay.wineinger@gmail.com>
J. Clifford Dyer <jcd@sdf.lonestar.org>
jcrasta@gmail.com
jdetaeye
@ -338,6 +341,7 @@ answer newbie questions, and generally made Django that much better:
john@calixto.net
John D'Agostino <john.dagostino@gmail.com>
John Huddleston <huddlej@wwu.edu>
John Moses <moses.john.r@gmail.com>
John Paulett <john@paulett.org>
John Shaffer <jshaffer2112@gmail.com>
Jökull Sólberg Auðunsson <jokullsolberg@gmail.com>
@ -430,11 +434,13 @@ answer newbie questions, and generally made Django that much better:
Marian Andre <django@andre.sk>
Marijn Vriens <marijn@metronomo.cl>
Mario Gonzalez <gonzalemario@gmail.com>
Mariusz Felisiak <felisiak.mariusz@gmail.com>
Mark Biggers <biggers@utsl.com>
mark@junklight.com
Mark Lavin <markdlavin@gmail.com>
Mark Sandstrom <mark@deliciouslynerdy.com>
Markus Holtermann <https://markusholtermann.eu>
Marten Kenbeek <marten.knbk+django@gmail.com>
martin.glueck@gmail.com
Martin Green
Martin Kosír <martin@martinkosir.net>
@ -452,6 +458,7 @@ answer newbie questions, and generally made Django that much better:
Matt Deacalion Stevens <matt@dirtymonkey.co.uk>
Matt Dennenbaum
Matthew Flanagan <http://wadofstuff.blogspot.com>
Matthew Somerville <matthew-github@dracos.co.uk>
Matthew Tretter <m@tthewwithanm.com>
Matthias Kestenholz <mk@406.ch>
Matthias Pronk <django@masida.nl>
@ -491,6 +498,7 @@ answer newbie questions, and generally made Django that much better:
mitakummaa@gmail.com
mmarshall
Moayad Mardini <moayad.m@gmail.com>
Moritz Sichert <moritz.sichert@googlemail.com>
Morten Bagai <m@bagai.com>
msaelices <msaelices@gmail.com>
msundstr
@ -511,6 +519,7 @@ answer newbie questions, and generally made Django that much better:
Niclas Olofsson <n@niclasolofsson.se>
Nicola Larosa <nico@teknico.net>
Nicolas Lara <nicolaslara@gmail.com>
Nicolas Noé <nicolas@niconoe.eu>
Niran Babalola <niran@niran.org>
Nis Jørgensen <nis@superlativ.dk>
Nowell Strite <http://nowell.strite.org/>
@ -602,6 +611,7 @@ answer newbie questions, and generally made Django that much better:
schwank@gmail.com
Scot Hacker <shacker@birdhouse.org>
Scott Barr <scott@divisionbyzero.com.au>
Scott Pashley <github@scottpashley.co.uk>
scott@staplefish.com
Sean Brant
Sebastian Hillig <sebastian.hillig@gmail.com>
@ -648,6 +658,7 @@ answer newbie questions, and generally made Django that much better:
Terry Huang <terryh.tp@gmail.com>
thebjorn <bp@datakortet.no>
Thejaswi Puthraya <thejaswi.puthraya@gmail.com>
Thijs van Dien <thijs@vandien.net>
Thomas Chaumeny <t.chaumeny@gmail.com>
Thomas Güttler <hv@tbz-pariv.de>
Thomas Kerpe <thomas@kerpe.net>
@ -705,10 +716,12 @@ answer newbie questions, and generally made Django that much better:
Wilson Miner <wminer@gmail.com>
wojtek
Xia Kai <http://blog.xiaket.org/>
Yann Fouillat <gagaro42@gmail.com>
Yann Malet
Yasushi Masuda <whosaysni@gmail.com>
ye7cakf02@sneakemail.com
ymasuda@ethercube.com
Yoong Kang Lim <yoongkang.lim@gmail.com>
Zachary Voase <zacharyvoase@gmail.com>
Zach Thompson <zthompson47@gmail.com>
Zain Memon

View File

@ -18,20 +18,9 @@ recursive-include django/contrib/*/locale *
recursive-include django/contrib/admin/templates *
recursive-include django/contrib/admin/static *
recursive-include django/contrib/admindocs/templates *
recursive-include django/contrib/auth/fixtures *
recursive-include django/contrib/auth/templates *
recursive-include django/contrib/auth/tests/templates *
recursive-include django/contrib/flatpages/fixtures *
recursive-include django/contrib/flatpages/tests/templates *
recursive-include django/contrib/gis/gdal/tests/data *
recursive-include django/contrib/gis/static *
recursive-include django/contrib/gis/templates *
recursive-include django/contrib/gis/tests/data *
recursive-include django/contrib/gis/tests/distapp/fixtures *
recursive-include django/contrib/gis/tests/geoapp/fixtures *
recursive-include django/contrib/gis/tests/geogapp/fixtures *
recursive-include django/contrib/gis/tests/relatedapp/fixtures *
recursive-include django/contrib/sitemaps/templates *
recursive-include django/contrib/sitemaps/tests/templates *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

View File

@ -33,8 +33,8 @@ To get more help:
To contribute to Django:
* Check out https://www.djangoproject.com/community/ for information about
getting involved.
* Check out https://docs.djangoproject.com/en/dev/internals/contributing/ for
information about getting involved.
To run Django's test suite:

View File

@ -1,6 +1,6 @@
from django.utils.version import get_version
VERSION = (1, 8, 0, 'alpha', 0)
VERSION = (1, 8, 20, 'alpha', 0)
__version__ = get_version(VERSION)

View File

@ -1,10 +1,9 @@
from importlib import import_module
import os
from importlib import import_module
from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
from django.utils.module_loading import module_has_submodule
from django.utils._os import upath
from django.utils.module_loading import module_has_submodule
MODELS_MODULE_NAME = 'models'
@ -110,9 +109,6 @@ class AppConfig(object):
# If we're reaching this point, we must attempt to load the app config
# class located at <mod_path>.<cls_name>
# Avoid django.utils.module_loading.import_by_path because it
# masks errors -- it reraises ImportError as ImproperlyConfigured.
mod = import_module(mod_path)
try:
cls = getattr(mod, cls_name)

View File

@ -1,13 +1,13 @@
from collections import Counter, defaultdict, OrderedDict
import os
import sys
import threading
import warnings
from collections import Counter, OrderedDict, defaultdict
from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
from django.utils import lru_cache
from django.utils.deprecation import RemovedInDjango19Warning
from django.utils._os import upath
from django.utils.deprecation import RemovedInDjango19Warning
from .config import AppConfig
@ -213,7 +213,7 @@ class Apps(object):
warnings.warn(
"Model '%s.%s' was already registered. "
"Reloading models is not advised as it can lead to inconsistencies, "
"most notably with related models." % (model_name, app_label),
"most notably with related models." % (app_label, model_name),
RuntimeWarning, stacklevel=2)
else:
raise RuntimeError(
@ -344,7 +344,7 @@ class Apps(object):
for model in self.get_models(include_auto_created=True):
model._meta._expire_cache()
### DEPRECATED METHODS GO BELOW THIS LINE ###
# ### DEPRECATED METHODS GO BELOW THIS LINE ###
def load_app(self, app_name):
"""

View File

@ -1,9 +0,0 @@
#!/usr/bin/env python
# This works exactly like 2to3, except that it uses Django's fixers rather
# than 2to3's built-in fixers.
import sys
from lib2to3.main import main
sys.exit(main("django.utils.2to3_fixes"))

View File

@ -1,38 +0,0 @@
#!/usr/bin/env python
"""
gather_profile_stats.py /path/to/dir/of/profiles
Note that the aggregated profiles must be read with pstats.Stats, not
hotshot.stats (the formats are incompatible)
"""
from hotshot import stats
import os
import pstats
import sys
def gather_stats(p):
profiles = {}
for f in os.listdir(p):
if f.endswith('.agg.prof'):
path = f[:-9]
prof = pstats.Stats(os.path.join(p, f))
elif f.endswith('.prof'):
bits = f.split('.')
path = ".".join(bits[:-3])
prof = stats.load(os.path.join(p, f))
else:
continue
print("Processing %s" % f)
if path in profiles:
profiles[path].add(prof)
else:
profiles[path] = prof
os.unlink(os.path.join(p, f))
for (path, prof) in profiles.items():
prof.dump_stats(os.path.join(p, "%s.agg.prof" % path))
if __name__ == '__main__':
gather_stats(sys.argv[1])

View File

@ -1,30 +0,0 @@
#!/usr/bin/env python
import os
import sys
def unique_messages():
basedir = None
if os.path.isdir(os.path.join('conf', 'locale')):
basedir = os.path.abspath(os.path.join('conf', 'locale'))
elif os.path.isdir('locale'):
basedir = os.path.abspath('locale')
else:
print("This script should be run from the Django Git tree or your project or app tree.")
sys.exit(1)
for (dirpath, dirnames, filenames) in os.walk(basedir):
for f in filenames:
if f.endswith('.po'):
sys.stderr.write('processing file %s in %s\n' % (f, dirpath))
pf = os.path.splitext(os.path.join(dirpath, f))[0]
cmd = 'msguniq "%s.po"' % pf
stdout = os.popen(cmd)
msg = stdout.read()
with open('%s.po' % pf, 'w') as fp:
fp.write(msg)
if __name__ == "__main__":
unique_messages()

View File

@ -13,7 +13,7 @@ import warnings
from django.conf import global_settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.deprecation import RemovedInDjango20Warning
from django.utils.deprecation import RemovedInDjango110Warning
from django.utils.functional import LazyObject, empty
from django.utils import six
@ -115,11 +115,11 @@ class Settings(BaseSettings):
if ('django.contrib.auth.middleware.AuthenticationMiddleware' in self.MIDDLEWARE_CLASSES and
'django.contrib.auth.middleware.SessionAuthenticationMiddleware' not in self.MIDDLEWARE_CLASSES):
warnings.warn(
"Session verification will become mandatory in Django 2.0. "
"Session verification will become mandatory in Django 1.10. "
"Please add 'django.contrib.auth.middleware.SessionAuthenticationMiddleware' "
"to your MIDDLEWARE_CLASSES setting when you are ready to opt-in after "
"reading the upgrade considerations in the 1.8 release notes.",
RemovedInDjango20Warning
RemovedInDjango110Warning
)
if hasattr(time, 'tzset') and self.TIME_ZONE:

View File

@ -34,7 +34,7 @@ INTERNAL_IPS = ()
ALLOWED_HOSTS = []
# Local time zone for this installation. All choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
# https://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
# systems may support all possibilities). When USE_TZ is True, this is
# interpreted as the default user time zone.
TIME_ZONE = 'America/Chicago'

View File

@ -33,7 +33,7 @@ LANG_INFO = {
'bidi': True,
'code': 'az',
'name': 'Azerbaijani',
'name_local': 'azərbaycan dili',
'name_local': 'Azərbaycanca',
},
'be': {
'bidi': False,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
# -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j E Y г.'
TIME_FORMAT = 'G:i'
DATETIME_FORMAT = 'j E Y г. G:i'
YEAR_MONTH_FORMAT = 'F Y г.'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d.%m.%Y', # '25.10.2006'
'%d.%m.%y', # '25.10.06'
]
DATETIME_INPUT_FORMATS = [
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
'%d.%m.%Y', # '25.10.2006'
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
'%d.%m.%y %H:%M', # '25.10.06 14:30'
'%d.%m.%y', # '25.10.06'
]
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -12,13 +12,13 @@ YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'Y/n/j'
SHORT_DATETIME_FORMAT = 'Y/n/j، G:i'
# FIRST_DAY_OF_WEEK =
FIRST_DAY_OF_WEEK = 6
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
# NUMBER_GROUPING =

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -21,4 +21,4 @@ SHORT_DATE_FORMAT = 'j.n.Y'
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
# NUMBER_GROUPING =
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More