Commit Graph

20593 Commits

Author SHA1 Message Date
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 1c5f4e86bc 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 64240263f2 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 25b912abbe 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 b1b14587ae 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 263b3d2ba1 from master
2015-11-14 11:24:21 -05:00
arniu 3b73a9c982 [1.8.x] Made doc icon's edges smooth.
Backport of b8f78823ee 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 a32538279c 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 2514e044a7 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 ce4914eab4 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 a8f05f405f 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 9788625277 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 91a431f48c 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 86d9b10dc3 and
8a842148b6 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 2926559cce 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 cc8c02fa0f 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 4a9c32f5ee from master
2015-11-11 12:30:32 -05:00
arniu 74a5664461 [1.8.x] Made doc icons background transparent.
Backport of cb32292176 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 34669ea6b8 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 d3e3703a15 from master
2015-11-11 08:57:46 -05:00
Tim Graham 43099f543e [1.8.x] Updated six to 1.10.0.
Backport of 4c593eaa5f 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 e0de82c9b2 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 4608573788 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 bc6eaca304 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 1155843a41 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 1679472165 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 81006b9657 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 ac750dbbc0 from master
2015-11-07 11:10:18 +01:00
Sergey Fedoseev a71fc544c6 [1.8.x] Fixed #25660 -- Documented GEOSGeometry.dims
Backport of f98126a05a 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 99c58c27d5 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 d49b36e485 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 4dea29ec7b 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 4373eac998 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 a10cbbbc17 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 cdb17dcb64 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 b67502fb8d 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 ad67fcdf51 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 a17216646a 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 e19bd086d6 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 81b55fb900 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 69239c0f96 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 8c5b8018f6 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 abf5ccc29c 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