Commit Graph

10468 Commits

Author SHA1 Message Date
Tim Graham bbc4a5a792 [2.0.x] Fixed #29081 -- Clarified comments in QuerySet.select_related() example.
Backport of e6f0e324e2 from master
2018-01-29 12:37:05 -05:00
Tim Graham c2962d8147 [2.0.x] Expanded docs for AbstractBaseUser.has_usable_password().
Backport of 92f48680db from master
2018-01-27 11:29:57 -05:00
Tim Graham ed206a9b99 [2.0.x] Fixed #29055 -- Doc'd that escapejs doesn't make template literals safe.
Backport of f229049d6c from master
2018-01-27 09:41:15 -05:00
Mariusz Felisiak 42622b8934
[2.0.x] Fixed #29054 -- Fixed a regression where a queryset that annotates with geometry objects crashes.
Made GEOSGeometryBase hashable.
Regression in 19b2dfd1bf.

Thanks Tim Graham for the review.
Backport of b002a032f9 from master
2018-01-27 11:14:42 +01:00
Jon Dufresne 61c74ae74f [2.0.x] Fixed #29067 -- Fixed regression in QuerySet.values_list(..., flat=True) followed by annotate().
Regression in 4dfd6b88d5.

Backport of 3187c89d6f from master
2018-01-26 10:22:14 -05:00
Senthil d06381debc [2.0.x] Fixed #28784 -- Clarified how migrate --fake works.
Backport of cbac11f962 from master
2018-01-24 15:25:26 -05:00
Ashaba c6c73e3401 [2.0.x] Fixed #28403 -- Added missing formats in FORMAT_MODULE_PATH docs.
Backport of 95fd5cf459 from master
2018-01-24 14:48:39 -05:00
Tim Graham f02c44396a [2.0.x] Fixed "template tag" spelling in docs.
Backport of f0f383b635 from master
2018-01-23 09:48:31 -05:00
Chris Jerdonek b749c35618 [2.0.x] Refs #25604 -- Removed docs for makemigrations --exit.
Follow up to e0910dcc92.
Backport of b98dc1706e from master
2018-01-20 10:45:10 -05:00
Mariusz Felisiak c881c4f1f8 [2.0.x] Fixed #29032 -- Fixed an example of using expressions in QuerySet.values().
Backport of 7fbb1bd00d from master
2018-01-19 08:57:28 +01:00
Peter Wischer fbe7c8f413 [2.0.x] Fixed typo in docs/topics/i18n/translation.txt.
Backport of 196c257a23 from master
2018-01-17 08:50:26 +01:00
Karmen 146317b734 [2.0.x] Fixed #28881 -- Doc'd that CommonPasswordValidator's password list must be lowercase.
Backport of 4fcd28d442 from master
2018-01-15 10:36:31 -05:00
jaywelborn e5acbbe18e [2.0.x] Fixed #28761 -- Documented how an inline formset's prefix works.
Backport of 56e590cc0b from master
2018-01-13 16:39:53 -05:00
Étienne Loks 8f2e3857ce [2.0.x] Fixed #29016 -- Fixed incorrect foreign key nullification on related instance deletion.
Backport of 9a621edf62 from master
2018-01-13 13:10:02 -05:00
Tim Graham 62236b514e [2.0.x] Added stub release notes for 1.11.10.
Backport of cea5fe94c6 from master
2018-01-13 09:52:12 -05:00
Botond Béres 881f66bc55 [2.0.x] Fixed #28231 -- Doc'd that QuerySet.bulk_create() casts objs to a list.
Backport of 52aa26e697 from master
2018-01-12 19:56:36 -05:00
Himanshu Chauhan cc1bdce674 [2.0.x] Fixed #28885 -- Fixed hidden content at the bottom of the "The install worked successfully!" page for some languages.
Backport of 1b753b2d60 from master
2018-01-12 19:33:07 -05:00
Tim Graham 3f951b1f94 [2.0.x] Fixed #29017 -- Updated BaseCommand.leave_locale_alone doc per refs #24073.
Backport of b9cec9fa1f from master
2018-01-12 18:31:52 -05:00
Tim Graham 8594d89527 [2.0.x] Removed note in tutorial about bypassing manage.py.
This isn't relevant for beginners.

Backport of a8e492bc81 from master
2018-01-11 19:06:24 -05:00
Tim Graham 3d144787c9 [2.0.x] Fixed #29002 -- Corrected cached template loader docs about when it's automatically enabled.
Thanks oTree-org for the suggestion.

Backport of 7c00f9fb1c from master
2018-01-11 06:52:58 -05:00
Mariusz Felisiak 07fb89b420
[2.0.x] Updated various links in docs to use HTTPS.
Backport of 7c81b28ebc from master
2018-01-07 14:35:06 +01:00
Tim Graham 5bef733014 [2.0.x] Confirmed support for PostGIS 2.4.
Backport of 5d5a2bd299 from master
2018-01-04 17:53:09 -05:00
Tim Graham 41b30a992e [2.0.x] Added stub release notes for 2.0.2.
Backport of 0f5a741ada from master
2018-01-01 20:12:08 -05:00
Tim Graham 45cf4ae862 [2.0.x] Added release date for 2.0.1 and 1.11.9.
Backport of 3ae2bcc768 from master
2018-01-01 19:35:05 -05:00
Mariusz Felisiak b54302d226
[2.0.x] Fixed #28958 -- Fixed admin changelist crash when using a query expression in the page's ordering.
Thanks Tim Graham for the review.

Backport of c815213740 from master
2017-12-27 18:46:05 +01:00
Tim Graham 1b27374b0d [2.0.x] Fixed #28966 -- Doc'd that the uuid URL path converter requires dashes
Backport of 038ea4f859 from master
2017-12-27 12:24:07 -05:00
Ran Benita 4e4619a2b8 [2.0.x] Fixed #28944 -- Fixed crash when chaining values()/values_list() after QuerySet.select_for_update(of=()).
Backport of c21f158295 from master
2017-12-26 12:18:39 -05:00
Claude Paroz 830636df73 [2.0.x] Fixed #28594 -- Removed Jython docs and specific code
Thanks Andrey Martyanov for the report, and Tim Graham for the review.
Backport of 23b21db31b from master.
2017-12-23 10:28:29 +01:00
Simon Charette b40a1d774d [2.0.x] Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model referenced by a ManyToManyField.
Introspected database constraints instead of relying on _meta.related_objects
to determine whether or not a table or a column is referenced on rename
operations.

This has the side effect of ignoring both db_constraint=False and virtual
fields such as GenericRelation which aren't backend by database level
constraints and thus shouldn't prevent the rename operations from being
performed in a transaction.

Regression in 095c1aaa89.

Thanks Tim for the additional tests and edits, and Mariusz for the review.

Backport of 9f7772e098 from master
2017-12-22 16:09:49 -05:00
Berker Peksag 17987b5511 [2.0.x] Updated documented mysqlclient requirement to 1.3.7.
The test requirement was bumped in
2514e044a7.
Backport of ad9390bba2 from master
2017-12-21 19:13:32 -05:00
Tilmann Becker c99ab335a1 [2.0.x] Fixed #28947 -- Fixed crash when coercing a translatable URL pattern to str.
Regression in df41b5a05d.

Backport of 01384ce36c from master
2017-12-20 20:56:57 -05:00
Tim Graham 6f86d8bc69 [2.0.x] Fixed #28941 -- Fixed crash in testserver command startup.
Regression in 2b09e4c88e.

Backport of e7b804c060 from master
2017-12-20 15:15:24 -05:00
Sergey Fedoseev 2679cdbea2 [2.0.x] Refs #25181 -- Updated timezone.now() docs about obtaining the time in the current time zone.
Backport of a7a36bb4d8 from master
2017-12-20 10:44:45 -05:00
weijunji f0801119b7 [2.0.x] Fixed #28929 -- Corrected QUnit examples.
Backport of 1ef8b30abe from master
2017-12-18 09:50:50 -10:00
Daniel Hepper cc17f39c9c [2.0.x] Fixed #28938 -- Corrected Python compatibility in the tutorial.
Backport of 4dcd7723d5 from master
2017-12-18 09:13:42 -10:00
Sergey Fedoseev 0f7ca1e878 [2.0.x] Fixed #28915 -- Prevented SQLite from truncating trailing zeros in the fractional part of DecimalField.
This reverts commit a146b65628 and adds
a test for the regression.

Backport of 6fd6d8383f from master
2017-12-12 22:01:25 -10:00
Rodrigo Pinheiro Marques de Araújo 9f39f202ab [2.0.x] Fixed #28898 -- Corrected admin check to allow a OneToOneField in ModelAdmin.autocomplete_fields.
Backport of 30a389bd77 from master
2017-12-12 21:40:05 -10:00
Sergey Fedoseev ce26ec0163 [2.0.x] Fixed #28896 -- Reallowed filtering a queryset with GeometryField=None.
Regression in 58da81a5a3.

Backport of da71e4bb08 from master
2017-12-12 17:15:29 -10:00
Morgan Wahl 5ca9cf47a7 [2.0.x] Refs #28856 -- Fixed caching of a GenericForeignKey pointing to a model that uses more than one level of MTI.
Forwardport of 3522203502 from stable/1.11.x
2017-12-08 14:00:50 -05:00
M Somerville 6dea1b18f3 [2.0.x] Fixed #28891 -- Documented Origin's loader attribute.
Backport of 16bd4964df from master
2017-12-07 12:20:22 -05:00
Sam Collins 66ccb3acb9 [2.0.x] Fixed typo in docs/ref/contrib/admin/index.txt.
Backport of 2d75e74e18 from master
2017-12-07 10:53:07 -05:00
Tim Graham a06828cd2e [2.0.x] Reverted "[1.11.x] Refs #28856 -- Fixed caching of a GenericForeignKey pointing to a model that uses more than one level of MTI."
This reverts commit a2aea4521d as it was
committed by mistake.
2017-12-07 09:06:09 -05:00
Mohammad Esmaeilbeygi 6b01ff80b2 [2.0.x] Fixed import in docs/ref/models/conditional-expressions.txt example.
Backport of 9d1d0e2b70 from master
2017-12-07 08:58:04 -05:00
Morgan Wahl a2aea4521d [1.11.x] Refs #28856 -- Fixed caching of a GenericForeignKey pointing to a model that uses more than one level of MTI. 2017-12-06 10:08:52 -05:00
Tim Graham e30674a1b7 [2.0.x] Fixed #28886 -- Updated prefix for example django.contrib.auth.urls URLs.
Backport of 4114b441ee from master
2017-12-06 09:24:01 -05:00
Tim Graham be70d3b968 [2.0.x] Fixed #28883 -- Doc'd that the uuid URL path converter matches lowercase only letters.
Backport of bae365e13c from master
2017-12-06 09:16:52 -05:00
Mariusz Felisiak 741711f8a2 [2.0.x] Refs #28876 -- Fixed incorrect foreign key constraint name for models with quoted db_table.
Thanks Simon Charette and Tim Graham for the review and Carlos E. C.
Leite for the report.

Backport of fc48047586 from master
2017-12-05 22:34:56 +01:00
Mariusz Felisiak 73ab743866 [2.0.x] Refs #28876 -- Fixed incorrect class-based model index name generation for models with quoted db_table.
Thanks Simon Charette and Tim Graham for the review and Carlos E. C.
Leite for the report.

Backport of f79d9a322c from master
2017-12-05 22:34:47 +01:00
Claude Paroz dd5d405e62 [2.0.x] Removed 'development' word in contributing docs
Backport of f2ec896912 from master.
2017-12-05 18:44:06 +01:00
Nick Pope c1d57615ac [2.0.x] Fixed #28890 -- Removed newlines between MultiWidget's subwidgets.
Regression in b52c73008a.

Backport of e014f91a70 from master
2017-12-05 11:44:11 -05:00
Tim Graham e71f4e8632 [2.0.x] Added stub release notes for 1.11.9.
Backport of dfeb19121b from master
2017-12-05 10:55:35 -05:00
Igor Starikov b0d809ac6c [2.0.x] Fixed typo in docs/ref/models/expressions.txt.
Backport of 3cc08f4b2b from master
2017-12-05 08:40:07 -05:00
David Szotten 48beda6660 [2.0.x] Fixed grammar in docs/releases/2.0.txt.
Backport of bee4c2baed from master
2017-12-04 08:56:19 -05:00
Sergey Fedoseev 6a70b576b5 [2.0.x] Fixed typo in docs/topics/testing/advanced.txt.
Backport of 3922f02dc6 from master
2017-12-04 11:55:12 +01:00
Tim Graham 7925351241 [2.0.x] Added stub release notes for 2.0.1.
Backport of 450c933fff from master
2017-12-02 10:42:34 -05:00
Tim Graham 6c05e69221 [2.0.x] Added release dates for 2.0 and 1.11.8.
Backport of 335aad5d91 from master
2017-12-02 08:56:06 -05:00
Simon Charette 31d318d19c [2.0.x] Fixed #28849 -- Fixed referenced table and column rename on SQLite.
Thanks Ramiro for the input and Tim for the review.

Backport of 095c1aaa89 from master
2017-12-01 22:15:48 -05:00
Tim Graham 4dc35e126d [2.0.x] Fixed #28305 -- Fixed "Cannot change column 'x': used in a foreign key constraint" crash on MySQL with a sequence of AlterField or RenameField operations.
Regression in 45ded053b1.

Backport of c3e0adcad8 from master
2017-12-01 19:09:21 -05:00
Simon Charette d31424fec1 [2.0.x] Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey pointing to a MTI model.
Regression in b9f8635f58.

Modified backport of e50add6ca1 from master
2017-11-30 10:43:38 -05:00
Mads Jensen 4d3b8e199e [2.0.x] Fixed #28702 -- Made query lookups for CIText fields use citext.
Backport of f0a68c2511 from master
2017-11-29 10:40:01 -05:00
Raphael Michel 75c1fd6538 [2.0.x] Fixed #28848 -- Fixed SQLite/MySQL crash when ordering by a filtered subquery that uses nulls_first/nulls_last.
Backport of 616f468760 from master
2017-11-27 11:39:57 -05:00
Luke Plant a11b610325 [2.0.x] Linked to prefetch_related_objects func in DB optimization docs.
Backport of e283c1a from master
2017-11-23 21:33:08 +03:00
Hyunwoo Park 4091a07f77 [2.0.x] Fixed typo in docs/topics/forms/media.txt.
Backport of 3f237c1a5b from master
2017-11-22 07:48:08 -05:00
Frédéric Massart 427a8b4485 [2.0.x] Clarified who the AdminEmailHandler emails.
Backport of a5f1e5809f from master
2017-11-21 12:05:49 -05:00
Dražen Odobašić 286120444f [2.0.x] Fixed #28817 -- Made QuerySet.iterator() use server-side cursors after values() and values_list().
Backport of d97f026a7a from master
2017-11-21 10:38:14 -05:00
Benjamin Bach 385e06d8c0 [2.0.x] Fixed #28815 -- Fixed ExtractYear imports in docs/ref/models/expressions.txt.
Backport of bf49d9eb0b from master
2017-11-17 17:30:37 -05:00
Tim Graham 2b3907cf74 [2.0.x] Fixed #28802 -- Fixed typo in docs/topics/auth/default.txt.
Backport of d392fc293c from master
2017-11-16 10:38:48 -05:00
Tim Graham 0f7b5b38b6 [2.0.x] Fixed #28796 -- Doc'd backwards incompatibility when reverse() receives bytestring args/kwargs.
Due to 301de774c2.

Backport of 6bf85ff7e3 from master
2017-11-16 09:29:50 -05:00
Simon Charette 0696edbc6a [2.0.x] Fixed #28792 -- Fixed index name truncation of namespaced tables.
Refs #27458, #27843.

Thanks Tim and Mariusz for the review.

Backport of ee85ef8315 from master
2017-11-15 07:58:36 -05:00
Tim Graham 3f372ef9d3 [2.0.x] Fixed #28786 -- Doc'd middleware ordering considerations due to CommonMiddleware setting Content-Length.
Backport of bc95314ca6 from master
2017-11-14 12:57:18 -05:00
Mariusz Felisiak ca0a9c938f
[2.0.x] Fixed #28781 -- Added QuerySet.values()/values_list() support for union(), difference(), and intersection().
Thanks Tim Graham for the review.
Backport of 2d3cc94284 from master
2017-11-12 14:31:21 +01:00
Tim Graham 3c8c3ff637 [2.0.x] Fixed #28777 -- Clarified the docs for admin.register's args.
Backport of abaf0ab4a4 from master
2017-11-09 21:22:03 -05:00
shanghui 36dd0126a5 [2.0.x] Fixed #28645 -- Reallowed AuthenticationForm to raise the inactive user error when using ModelBackend.
Regression in e0a3d93730.

Thanks Guilherme Junqueira for the report and Tim Graham for the review.

Backport of 359370a8b8 from master
2017-11-08 09:45:35 -05:00
Tim Graham c869207ea2 [2.0.x] Fixed #28770 -- Warned that quoting a placeholder in a raw SQL string is unsafe.
Thanks Hynek Cernoch for the report and review.

Backport of 327f0f37ce from master
2017-11-07 13:07:29 -05:00
Chris Lamb 518c11352c [2.0.x] Fixed #28663 -- Add a check for likely incorrectly migrated django.urls.path() routes.
Backport of 998c9dd599 from master
2017-11-07 11:40:17 -05:00
Tim Graham 72f875541a [2.0.x] Fixed typo in docs/topics/db/aggregation.txt.
Backport of 00b93c2b1e from master
2017-11-07 09:03:26 -05:00
Дилян Палаузов e68baf3862 [2.0.x] Fixed #28776 -- Fixed a/an/and typos in docs and comments.
Backport of 6c0042430e from master
2017-11-06 22:41:23 -05:00
Tim Graham bcaef2c91d [2.0.x] Fixed #28765 -- Clarified docs about what types the __in lookup accepts.
Backport of 5587485d49 from master
2017-11-06 13:12:56 -05:00
Sergey Fedoseev a44fb4aa02 [2.0.x] Fixed #28632 -- Updated docs about using raw SQL with GIS and doc'd changes from refs #28518 in release notes.
Backport of 8869142a4d from master
2017-11-04 10:56:38 -04:00
Tim Graham 8c7dac6545 [2.0.x] Added stub release notes for 1.11.8.
Backport of ef718a72b3 from master
2017-11-01 21:36:53 -04:00
Tim Graham b9370ed683 [2.0.x] Added release date for 1.11.7.
Backport of 5f5425f74e from master
2017-11-01 21:13:29 -04:00
Tim Graham 2d2b49ed0a [2.0.x] Fixed #28759 -- Promoted the contributing guide in the docs for the django-developers mailing list.
Backport of c70086473e from master
2017-11-01 20:39:28 -04:00
Sam Morrow c9ce52820a [2.0.x] Fixed #28745 -- Added first and last page links to paginator docs example.
Backport of dcc0427c58 from master
2017-11-01 20:23:21 -04:00
Tim Graham 29c97fa6b7 [2.0.x] Described how querysets are protected from SQL injection in more detail.
Backport of 6e8508734b from master
2017-11-01 11:53:15 -04:00
Tim Graham 7d3c02a214 [2.0.x] Fixed #28680 -- Doc'd Func.__init__()'s **extra and as_sql()'s **extra_context aren't escaped.
Thanks Hynek Cernoch for the report and review.

Backport of 1e7dbbdec5 from master
2017-11-01 11:53:07 -04:00
Adam Johnson b40983a655 [2.0.x] Made assorted edits to docs/releases/2.0.txt.
Backport of 629dde8db1 from master
2017-11-01 11:22:55 -04:00
Tim Graham f1efedf01a [2.0.x] Refs #23919 -- Replaced doc references to django.utils.http.urlquote() and urlquote_plus() with standard library alternatives.
Follow up to fee42fd99e.

Backport of 7945bc1d08 from master
2017-11-01 11:11:48 -04:00
Tim Graham cd37e47096 [2.0.x] Fixed #28741 -- Removed unnecessary leading dot from cross-domain cookie examples.
Backport of afd375fc34 from master
2017-11-01 11:06:56 -04:00
Ville Skyttä 8a6392e4c6 [2.0.x] Fixed 'a'/'an' mix-ups in docs.
Backport of 617686e226 from master
2017-10-30 21:47:27 -04:00
Adam Johnson 1f4e9935ef [2.0.x] Removed docs for obsolete compatibility checks.
Backport of f8946fbb5d from master
2017-10-30 12:42:47 -04:00
Ran Benita 6b5f2e3b79 [2.0.x] Refs #28010 -- Allowed reverse related fields in SELECT FOR UPDATE .. OF.
Thanks Adam Chidlow for polishing the patch.

Backport of 03049fb8d9 from master
2017-10-28 21:42:51 -04:00
Botond Beres 5630f4e6ac [2.0.x] Fixed #28205 -- Doc'd that ModelAdmin.prepopulated_fields only works on add forms.
Backport of 56b364bacc from master
2017-10-28 13:28:46 -04:00
Botond Beres 41009788a0 [2.0.x] Fixed #28131 -- Corrected examples of using attribute lookups on the "perms" template variable.
Backport of 51d7feff87 from master
2017-10-28 12:41:01 -04:00
Samir Shah 791f7aa110 [2.0.x] Refs #21927 -- Removed docs for include()'s old instance_namespace parameter.
Follow up to ad393beeb7.

Backport of 6c98c5abdf from master
2017-10-28 07:49:25 -04:00
Botond Beres 0eccbd2a8e [2.0.x] Fixed typo in docs/ref/models/querysets.txt.
Backport of ec5f7cb92e from master
2017-10-25 19:03:58 -04:00
Botond Beres 854aec4801 [2.0.x] Fixed #28395 -- Doc'd that QuerySet.first() can affect aggregation queries.
Backport of 95a14cfc47 from master
2017-10-25 19:02:21 -04:00
Mariusz Felisiak f5184ae5dc [2.0.x] Fixed #28689 -- Fixed unquoted table names in Subquery SQL when using OuterRef.
Regression in f48bc7c3db.

Backport of 81e357a7e1 from master
2017-10-25 17:25:45 -04:00
Tim Graham 01987bc0b4 [2.0.x] Fixed #28737 -- Clarified {% cache %} tag's handling of arguments.
Thanks Tom Aratyn for the report.

Backport of 171c7cc863 from master
2017-10-25 14:21:27 -04:00
Tim Graham c4f518e484 [2.0.x] Suggested LoginView rather than @login_required as an alternative to authenticate().
Backport of 3642c3758b from master
2017-10-25 12:02:12 -04:00
Tomer Chachamu 57d46606ed [2.0.x] Fixed #28722 -- Made QuerySet.reverse() affect nulls_first/nulls_last.
Backport of 21a3a29dc9 from master
2017-10-21 21:00:30 -04:00
Tim Graham f9a01d40d5 [2.0.x] Fixed #28613 -- Doc'd the return value for GenericForeignKey when the related object is deleted.
Backport of 1a82fc245e from master
2017-10-20 15:03:36 -04:00
Tim Graham b952db6772 [2.0.x] Fixed #28729 -- Replaced a numbered list with unordered list in TemplatesSetting docs.
Backport of eb9b56c5b6 from master
2017-10-20 14:03:47 -04:00
Collin Stedman 36b4def915 [2.0.x] Refs #19295 -- Doc'd that ManifestStaticFilesStorage doesn't work with runserver --insecure.
Backport of 4a861e8850 from master
2017-10-18 21:10:18 -04:00
Jozef 8cef9a5799 [2.0.x] Fixed typo in docs/ref/models/querysets.txt.
Backport of 3bd69b1261 from master
2017-10-17 10:07:33 -04:00
Simon Willison 9a2c2b7a68 [2.0.x] Made SearchQuery examples less sterotyped.
Backport of 346eb32861 from master
2017-10-17 09:59:01 -04:00
Simon Meers c678ff91b1 [2.0.x] Fixed typos in docs/releases/2.0.txt.
Backport of f771b24f00 from master
2017-10-17 08:02:42 -04:00
Claude Paroz 5595eccd4f [2.0.x] Fixed #28710 -- Fixed the Basque DATE_FORMAT string
Thanks Eneko Illarramendi for the report and initial patch.
Backport of 8c538871bd from master.
2017-10-13 19:50:18 +02:00
Mariusz Felisiak 8b42a18b2d
[2.0.x] Refs #28643 -- Reorganized database functions docs.
Thanks Tim Graham for the review.

Backport of ad8036d715 from master
2017-10-13 18:38:50 +02:00
LeeHanYeong edd3601be6 [2.0.x] Removed incorrect reference to ModelChoiceField in Field.choices docs.
Backport of 3ffbd54566 from master
2017-10-13 11:10:51 -04:00
Daniel Tao dc112bf530 [2.0.x] Fixed #28601 -- Prevented cache.get_or_set() from caching None if default is a callable that returns None.
Backport of 4d60261b2a from master
2017-10-10 09:35:52 -04:00
Mads Jensen d3e115151e [2.0.x] Fixed #28423 -- Expanded docs for indexing contrib.postgres fields.
Backport of 22ff4f81b1 from master
2017-10-09 12:19:38 -04:00
Tim Graham 22bcb89917 [2.0.x] Moved link in "Features removed in 2.0" to be more specific.
Backport of 50de55f399 from master
2017-10-09 09:42:00 -04:00
François Freitag 3eb447d85b [2.0.x] Refs #23919 -- Corrected django.utils.http.urlencode()'s documented signature.
Follow up to fee42fd99e.

Backport of e3a30f2d16 from master
2017-10-09 08:55:06 -04:00
Tim Graham ef5d86555d [2.0.x] Added stub release notes for 1.11.7.
Backport of fd4698fe3f from master
2017-10-05 14:45:20 -04:00
Tim Graham 3b75af63ae [2.0.x] Added release date for 1.11.6.
Backport of a8bcb8b509 from master
2017-10-05 14:14:25 -04:00
Tim Graham cfde4ac3e7 [2.0.x] Refs #28677 -- Doc'd that on_delete is required in migrations.
Backport of 491eb56fd4 from master
2017-10-03 09:46:50 -04:00
Stefan Schneider eff5f837c9 [2.0.x] Fixed #28653 -- Added missing ForeignKey.on_delete argument in docs.
Backport of 08c8c3ead9 from master
2017-09-29 11:38:41 -04:00
Stefan Schneider 9f9a8a6c59 [2.0.x] Fixed #28648 -- Corrected typo in docs/topics/db/queries.txt.
Backport of 293df73fb6 from master
2017-09-29 10:32:07 -04:00
Michael Käufl acd870a75a [2.0.x] Fixed #28651 -- Fixed typo in docs/ref/contrib/postgres/fields.txt.
Backport of 259fec8de0 from master
2017-09-29 09:27:35 -04:00
Jon Ribbens aff2df2427 [2.0.x] Fixed #28625 -- Distinguished DATABASES['TIME_ZONE'] from settings.TIME_ZONE.
Backport of 44f08422c8 from master
2017-09-28 10:17:46 -04:00
Miguel 5b38d7e973 [2.0.x] Clarified StrIndex docs example.
Backport of 4a908c0cd2 from master
2017-09-27 09:28:35 -04:00
Christopher Schäpers ecea60fee8 [2.0.x] Fixed #28627 -- Added slug converter to some path() examples in docs.
Backport of 6da140724d from master
2017-09-25 13:11:07 -04:00
Tim Graham e241b4e797 [2.0.x] Reverted "Fixed #28248 -- Fixed password reset tokens being valid for 1 day longer than PASSWORD_RESET_TIMEOUT_DAYS."
This reverts commit 95993a89ce.

Backport of 67a6ba391b from master
2017-09-25 09:06:32 -04:00
Tim Graham dda37675db [2.0.x] Refs #27788 -- Corrected minimum supported Oracle version in GIS docs.
Backport of d90936f41a from master
2017-09-22 15:09:55 -04:00
Tim Graham 828d55c0d5 [2.0.x] Removed empty sections in 2.0 release notes.
Backport of 559040f3d3 from master
2017-09-22 12:50:22 -04:00
Tim Graham 08dfcd89f6 [2.0.x] Updated man page for Django 2.0 alpha. 2017-09-22 12:26:46 -04:00
Tim Graham 366df25778 [2.0.x] Bumped django_next_version in docs config. 2017-09-22 12:21:21 -04:00
Nicolas Delaby 01d440fa1e Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) support.
Thanks Anssi Kääriäinen for contributing to the patch.
2017-09-22 11:53:17 -04:00
Shai Berger d612026c37 Refs #28595 -- Added a hook to add execute wrappers for database queries.
Thanks Adam Johnson, Carl Meyer, Anssi Kääriäinen, Mariusz Felisiak,
Michael Manfre, and Tim Graham for discussion and review.
2017-09-21 12:13:09 -04:00
Niall Dalton 4fe6588da3 Fixed #28576 -- Added color interpretation method to GDALBand. 2017-09-21 09:42:38 -04:00
Sjoerd Job Postmus df41b5a05d Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.
Thanks Aymeric Augustin for shepherding the DEP and patch review.
Thanks Marten Kenbeek and Tim Graham for contributing to the code.
Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-20 18:04:42 -04:00
Florian Apolloner c4c128d67c Fixed #28488 -- Reallowed error handlers to access CSRF tokens.
Regression in eef95ea96f.
2017-09-20 16:22:18 -04:00
Tim Graham f86aa6656a Fixed typo in docs/internals/deprecation.txt. 2017-09-19 10:09:01 -04:00
Johannes Hoppe f13bd32110 Refs #14370 -- Fixed typo in ModelAdmin.autocomplete_fields docs. 2017-09-19 08:51:46 -04:00
tk e7adad27f3 Fixed typo in docs/topics/cache.txt. 2017-09-19 06:52:01 -04:00
Mariusz Felisiak fb02ebe889 Fixed #28597 -- Fixed crash with the name of a model's autogenerated primary key in an Index's fields. 2017-09-18 14:06:00 -04:00
Johannes Hoppe 94cd8efc50 Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ManyToManyField in the admin.
Thanks Florian Apolloner and Tim Graham for review and
contributing to the patch.
2017-09-18 13:48:02 -04:00
Mads Jensen d549b88050 Fixed #26608 -- Added support for window expressions (OVER clause).
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes,
Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie
Cockburn for initial patch.
2017-09-18 09:42:29 -04:00
elky dc37e8846e Fixed #26818 -- Added responsive CSS for the admin. 2017-09-16 19:11:19 -04:00
Tim Graham ee4043f735 Refs #28593 -- Moved django.conf.urls.include() to django.urls().
The old location remains for backwards compatibility. Documentation
will be updated separately along with the rest of the URL routing changes.
2017-09-13 16:32:03 -04:00
Mariusz Felisiak c6a1faecc3 Refs #27090 -- Added real database sequence introspection.
Thanks Mariusz Felisiak for the Oracle part and Tim Graham for the
review.
2017-09-13 20:12:32 +02:00
Sergey Fedoseev bd903e8a6e Fixed #28570 -- Dropped support for GEOS 3.3.x.
Removed setting SRID in GEOSGeometry.clone() which was only required
in GEOS 3.3.0.
2017-09-11 13:57:24 -04:00
Jon Dufresne 99e65d6488 Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix. 2017-09-11 11:32:40 -04:00
Tim Graham 4844af90fb Fixed #28579 -- Doc'd upgrade effort expectations for Django 2.0. 2017-09-11 09:07:14 -04:00
Claude Paroz a599ae6018 Refs #24928 -- Added introspection support for PostgreSQL RangeField 2017-09-09 20:22:47 +02:00
Claude Paroz 0cbb6ac007 Refs #24928 -- Added introspection support for PostgreSQL JSONField
Thanks Adam Johnson and Tim Graham for the reviews.
2017-09-09 18:26:29 +02:00
Sergey Fedoseev 63d2472b10 Fixed capitalization of "Spherical Mercator." 2017-09-09 09:35:30 -04:00
Samir Shah 4ac2ab30f5 Removed obsolete doc references to javascript_catalog. 2017-09-08 07:53:56 -04:00
Tim Graham 44a6c27fd4 Fixed #28561 -- Removed inaccurate docs about QuerySet.order_by() and joins.
As of ccbba98131, both examples don't use
a join.
2017-09-06 19:21:38 -04:00
Sergey Fedoseev f3c9562143 Fixed #15648 -- Allowed QuerySet.values_list() to return a namedtuple. 2017-09-06 15:32:32 -04:00
Olivier Tabone a027447f56 Fixed #27318 -- Made cache.set_many() return the list of failed keys. 2017-09-06 14:38:44 -04:00
Sami J. Lehtinen 407c1249c9 Fixed #28032 -- Added Paginator.get_page().
Moved boilerplate from docs to a method.
2017-09-06 14:17:19 -04:00
François Freitag ad4a8acdb5 Fixed #11557 -- Added support for a list of fields in Meta.get_latest_by and QuerySet.earliest()/latest(). 2017-09-05 20:14:54 -04:00
Dima Kudosh 093fd479d6 Fixed #28335 -- Allowed query expressions in Meta.ordering. 2017-09-05 19:10:20 -04:00
Tim Graham 3d2c3905a6 Refs #28555 -- Forwardported 1.11.6 release note. 2017-09-05 16:46:55 -04:00
Tim Graham 1b86088f6f Added stub release notes for 1.11.6. 2017-09-05 16:13:46 -04:00
Tim Graham 79ae5811c7 Added 2017-12794 to the security release archive. 2017-09-05 12:09:44 -04:00
Tim Graham 46e2b9e059 Fixed CVE-2017-12794 -- Fixed XSS possibility in traceback section of technical 500 debug page.
This is a security fix.
2017-09-05 10:58:38 -04:00
Tim Graham 73b6d02747 Added stub release notes for security releases. 2017-09-05 10:58:38 -04:00
Mads Jensen f4135783ad Fixed #28126 -- Added GistIndex to contrib.postgres.
Thanks to Marc Tamlyn for the initial patch.
2017-09-04 21:08:02 -04:00
Jonatas CD c9b22707b0 Fixed #28479 -- Doc'd that transaction rollback doesn't revert model state. 2017-09-04 15:43:29 -04:00
Michael 3f2b1d926b Fixed #28568 -- Fixed typo in docs/ref/models/database-functions.txt.
And made an example use naming consistent with the rest of the doc.
2017-09-04 14:40:56 -04:00
Berker Peksag d81c86d32c Fixed typo in docs/releases/1.10.txt. 2017-09-04 08:40:07 -04:00
ZachLiuGIS 2dacc2ccd9 Fixed #28550 -- Restored contrib.auth's login() and logout() views' respect of positional arguments.
Regression in 78963495d0.

Forwardport of f8e0557b01 from stable/1.11.x
2017-09-03 12:06:44 -04:00
Tim Graham 2fc5a5bfe3 Removed stray versionadded/changed annotations for 1.10. 2017-09-02 21:47:01 -04:00
jkrzy 48d92fea67 Fixed #28367 -- Doc'd how to override management commands. 2017-09-02 16:21:13 -04:00
Jeremy Satterfield 473ab4610e Fixed #28332 -- Fixed diamond inheritence example in docs. 2017-09-02 14:10:41 -04:00
Simon Meers 60443e84b3 Fixed #17985 -- Documented ModelAdmin.lookup_allowed(). 2017-09-02 13:54:33 -04:00
Nick Pope 11f4c52ec7 Fixed #28525 -- Documented GDAL and GeoIP exceptions. 2017-09-02 09:10:18 -04:00
Berker Peksag 90fcf0fce7 Fixed typos in docs/releases/1.10.txt. 2017-09-02 09:09:07 -04:00
Nick Pope f9c2fd30be Fixed #28559 -- Removed contrib.gis.gdal.OGRException backwards compatibility alias. 2017-09-02 08:52:01 -04:00
Tim Graham 6e4a34580d Fixed #28557 -- Fixed ForeignKey/OneToOneField/ManyToManyField argument name in docs. 2017-09-01 20:03:32 -04:00
Tim Graham 04050bff30 Refs #26522 -- Forwardported 1.11.5 release note. 2017-09-01 16:41:39 -04:00
Nick Pope cbb27d603b Reordered GeoIP docs be consistent with GDAL/GEOS ordering. 2017-09-01 09:48:25 -04:00
Nick Pope 49017dc13a Made GeoIP docs headers consistent with other GIS docs. 2017-09-01 09:44:41 -04:00
Tim Graham 9075805570 Refs #23276 -- Fixed explanation of how calling views works.
"Importing the view" is no longer applicable after
a9fd740d22.
2017-08-31 11:57:46 -04:00
Tim Graham e5bd585c6e Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy.
Previously, it was a QuerySet which could reevaluate to a new value if the
model's data changes. This is inconsistent with other Field.value_from_object()
methods.

This allows reverting the fix in the admin for refs #27998.
2017-08-31 09:34:44 -04:00
Tim Graham 11cd46930e Refs #28487 -- Forwardported 1.11.5 release note. 2017-08-31 08:00:47 -04:00
jkrzy 20a761697f Fixed #27701 -- Doc'd staticfiles runserver bypasses middleware when serving static files. 2017-08-30 16:40:19 -04:00
Jkrzy da3a5cee4f Fixed #28548 -- Replaced 'middlewares' with 'middleware' in docs. 2017-08-30 06:25:51 -04:00
caleb logan 9e2bf65d6a Fixed #28530 -- Prevented SelectDateWidget from localizing years in output. 2017-08-29 14:56:08 -04:00
Mads Jensen fb42d02471 Refs #25809 -- Omitted pages_per_range from BrinIndex.deconstruct() if it's None. 2017-08-26 09:45:45 -04:00
Claude Paroz 3c0b2b80ed Fixed #28532 -- Fixed typo in PostgreSQL field docs
Thanks Andreas Poisel for the report.
2017-08-26 10:20:01 +02:00
hui shang c0f4c60edd Fixed #28513 -- Added POST request support to LogoutView. 2017-08-24 09:11:16 -04:00
Mariusz Felisiak 939d923e8e
Refs #28498 -- Forwardported 1.11.5 release note. 2017-08-23 10:08:42 +02:00
Mariusz Felisiak 330e965cd8
Fixed typo in docs/releases/1.11.5.txt. 2017-08-23 08:55:25 +02:00
Kim DoHyeon f21915bb3a Fixed #27931 -- Clarified the meaning of "django catch-all logger." 2017-08-22 16:24:18 -04:00
Kevin Grinberg c6a3546093 Fixed #28451 -- Restored pre-Django 1.11 Oracle sequence/trigger naming.
Regression in 69b7d4b116.
2017-08-22 15:51:08 -04:00
Harry Moreno 254fb8d1a4 Added "test --keepdb" to testing speedup docs. 2017-08-22 10:26:00 -04:00
Claude Paroz ed77bea582 Refs #28502 -- Complemented stringformat tuple handling/test.
An additional test and a code change were suggested in a late review.
2017-08-22 08:45:08 -04:00
Adrien Brunet b5ad5c628a Fixed typo in documented number of logging filters. 2017-08-21 16:06:38 -04:00
Berker Peksag 8d095c6378 Removed redundant backticks in docs/releases/1.8.txt 2017-08-21 09:16:22 +02:00
Mariusz Felisiak 6784383e93 Fixed #28498 -- Fixed test database creation with cx_Oracle 6. 2017-08-16 18:39:58 +02:00
Sergey Fedoseev a493424352 Removed unused reference in docs/ref/utils.txt.
Unused since f6acd1d271.
2017-08-16 18:42:37 +05:00
Bae KwonHan 0608c24378 Fixed typo in docs/releases/2.0.txt. 2017-08-15 09:41:49 -04:00
Mathieu Hinderyckx cf5740fbc8 Clarified Concat example in docs. 2017-08-14 14:28:05 -04:00
Alejandro Zamora 90d7b912b9 Fixed #28201 -- Added ProhibitNullCharactersValidator and used it on CharField form field. 2017-08-12 20:14:14 -04:00
Tom b78d100fa6 Fixed #27849 -- Added filtering support to aggregates. 2017-08-12 17:58:28 -04:00
Mariusz Felisiak 489421b015 Fixed #23546 -- Added kwargs support for CursorWrapper.callproc() on Oracle.
Thanks Shai Berger, Tim Graham and Aymeric Augustin for reviews and
Renbi Yu for the initial patch.
2017-08-12 21:06:49 +02:00
Jonatas CD 31f133ea08 Fixed #28252 -- Corrected docs for default file extensions of makemessages. 2017-08-11 15:22:10 -04:00