1
0
mirror of https://github.com/django/django.git synced 2025-04-02 04:26:42 +00:00

693 Commits

Author SHA1 Message Date
Irindu Indeera
fe7b456825 [1.11.x] Fixed #28352 -- Corrected QuerySet.values_list() return type in docs examples.
Backport of babe9e64a6172b09e7f70e8d8f01e67f2cb4176d and
2457c1866ef3586c56bd19aeaa554e78c1ed1875 from master
2017-07-11 14:23:22 -04:00
François Freitag
712ce47e1a [1.11.x] Fixed #18485 -- Doc'd behavior of PostgreSQL when manually setting AutoField.
Backport of 4f1eb64ad0bcebfae4075486855eb6b63355cc5a from master
2017-06-19 09:25:32 -04:00
Matthias Kestenholz
a1c6c220e2 [1.11.x] Fixed #27434 -- Doc'd how to raise a model validation error for a field not in a model form.
Backport of e8c056c31a5b353e7b50a405c00db12c28f4a756 from master
2017-06-13 20:47:58 -04:00
Tim Graham
48ce204488 [1.11.x] Fixed typo in docs/ref/models/querysets.txt.
Backport of 0877989c94130079930419e867ff55fa1fb4f5a0 from master
2017-06-09 12:48:46 -04:00
Mads Jensen
319839d780 [1.11.x] Refs #25240 -- Added ExtractWeek examples.
Backport of 085c2f94ec0155417601a9750ad60bb93536e166 from master
2017-06-08 09:17:01 -04:00
Lachlan Musicman
84dac491d4 [1.11.x] Fixed #28266 -- Fixed typo in docs/ref/models/instances.txt.
Backport of 00093daec9cc61d8af7fcebdbe58e263bea935a3 from master
2017-06-02 09:17:31 -04:00
François Freitag
8245255ae5 [1.11.x] Clarified QuerySet.iterator()'s docs on server-side cursors.
Backport of bf50ae821021c4f7cd608d2bd1f2dfff98f3ceb9 from master
2017-06-01 15:38:56 -04:00
François Freitag
6a2624286b [1.11.x] Fixed #28062 -- Added a setting to disable server-side cursors on PostgreSQL.
When a connection pooler is set up in transaction pooling mode, queries
relying on server-side cursors fail. The DISABLE_SERVER_SIDE_CURSORS
setting in DATABASES disables server-side cursors for this use case.

Backport of 88336fdbb5e101fa25825b737169c0d6af2faa93 from master
2017-05-06 07:45:46 -04:00
Josh Schneier
1f1040aa54 [1.11.x] Removed nonexistent methods from File's docs.
read() and write() were removed in 68a890e79f660484d05482902663b6168f0bd71e.

Backport of 98ee57e343206ef553de78b22be5e9a6dacb5060 from master
2017-04-25 20:17:31 -04:00
Taavi Teska
c3d3aeeafa [1.11.x] Fixed #27947 -- Doc'd that model Field.error_messages often don't propagate to forms.
Backport of 5dbf1c4b23cda915369f4895be293369575238d0 from master
2017-04-10 14:24:55 -04:00
Sudhanshu Mishra
44bf3c6812 [1.11.x] Fixed #28025 -- Fixed typo in docs/ref/models/querysets.txt.
Backport of 9f0c82971dff1e40bad63879b5f6fee42dd64953 from master
2017-04-05 07:23:59 -04:00
Mariusz Felisiak
3b4947e7ba [1.11.x] Removed extra characters in docs header underlines.
Backport of a3af8c99d94638e0d1fc8a847b74aa6953441d55 from master
2017-03-20 18:31:28 -04:00
Alasdair Nicol
d8039dfb0a [1.11.x] Removed self from method signatures in docs.
Backport of 757aefc12b79bac1bab730ac465fbfd3f810b61d from master
2017-03-16 20:34:15 -04:00
lb1c
70e6064d6b [1.11.x] Fixed incorrect import in docs/ref/models/expressions.txt.
Backport of 36f2262741311159e5c13eb5114fb9e902e2df31 from master
2017-03-15 08:10:09 -04:00
Alexkane
c231e965e7 [1.11.x] Made a few queryset lookup examples consistent.
Backport of b427f0d674362d22c063852754914d9315cbc2fa from master
2017-02-24 16:35:24 -05:00
Tim Graham
ec0af19f4c [1.11.x] Bumped MySQLdb version requirement to 1.2.3.
Older versions don't support Python 2.7.

Partial backport of 2d96c027f5eb32c2c09bd57df2240ae1d343b98e from master
2017-01-25 10:31:24 -05:00
Paolo Melchiorre
a69fc396e4 [1.11.x] Fixed typo in docs/ref/models/expressions.txt.
Backport of 5890d6ab03ebc7dac46ce7d9540b5768785caa34 from master
2017-01-25 07:46:37 -05:00
Matthew Schinckel
236ebe94bf Fixed #27149 -- Added Subquery and Exists database expressions.
Thanks Josh Smeaton for Oracle fixes.
2017-01-14 09:12:24 -05:00
Florian Apolloner
84c1826ded Fixed #27718 -- Added QuerySet.union(), intersection(), difference().
Thanks Mariusz Felisiak for review and Oracle assistance.
Thanks Tim Graham for review and writing docs.
2017-01-14 08:32:07 -05:00
François Freitag
f3b7c05936 Refs #16614 -- Made QuerySet.iterator() use server-side cursors on PostgreSQL.
Thanks to Josh Smeaton for the idea of implementing server-side cursors
in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin
Turner for their previous work. Also Simon Charette and Tim Graham for
review.
2017-01-11 09:25:37 -05:00
Tim Graham
e2d02c1fc9 Used a nontemporal example in QuerySet.bulk_create() in docs. 2016-12-27 09:59:07 -05:00
Tim Graham
e2112a5e1a Made cosmetic edits to the "What happens when you save?" docs. 2016-12-17 10:24:08 -05:00
Perry Roper
3be2268992 Added Prefetch import to first use in QuerySet docs. 2016-12-14 13:54:29 -05:00
Yohann Gabory
47ef8f31f3 Fixed #13312 -- Allowed specifying the order of null fields in queries.
Thanks Mariusz Felisiak for finishing the patch.
2016-12-08 09:54:07 -05:00
Simon Charette
ad8f6a45eb Replaced RawSQL with Cast in Coalesce doc example. 2016-11-30 12:08:26 -05:00
Tim Graham
55adfc0760 Fixed #27511 -- Corrected Field.related_model docs about GenericRelation. 2016-11-21 12:30:54 -05:00
Jonatas CD
b28c6ca763 Fixed #27482 -- Doc'd an example of Case() in QuerySet.filter(). 2016-11-17 12:39:35 -05:00
Jonatas CD
9da45ff352 Fixed #26985 -- Doc'd that ForeignKey.to_field reference must be unique. 2016-11-15 11:09:23 -05:00
Mads Jensen
1446902be4 Fixed #25240 -- Added ExtractWeek and exposed it through the __week lookup.
Thanks to Mariusz Felisiak and Tim Graham for review.
2016-11-11 08:01:40 -05:00
Tim Graham
0d6c7cae7c Inlined a note in docs/ref/models/expressions.txt. 2016-11-09 08:20:59 -05:00
Jop Reyntjes
f8fab6f902 Fixed #27414 -- Doc'd that F() expressions on relations return pk values. 2016-11-09 07:11:46 -05:00
Mariusz Felisiak
55993d1e4e Updated Oracle docs links to Oracle 12c. 2016-10-31 14:32:50 -04:00
Michael Scott
ec9ed07488 Fixed #27188 -- Allowed using unique=True with FileField.
Thanks Tim Graham for the initial patch.
2016-10-28 20:11:03 -04:00
Tim Graham
414ad25b09 Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
Marti Raudsepp
51fbe2a60d Updated postgresql.org links to https and made them canonical. 2016-10-25 11:43:32 -04:00
Tim Graham
51b83d9e51 Fixed #27342 -- Corrected QuerySet.update_or_create() example. 2016-10-13 11:02:02 -04:00
Tim Graham
c60feb6999 Fixed #25475 -- Doc'd how to use a literal % in Func.template. 2016-10-07 10:24:45 -04:00
Adam Chainz
224fe22bf1 Doc'd that model instances with pk=None don't compare equal. 2016-10-07 09:01:18 -04:00
Tim Graham
9819676676 Updated links to the current version of MySQL docs. 2016-09-30 09:14:17 -04:00
zhuanyenan
17677d510f Corrected docs for return type of Field.formfield(). 2016-09-17 14:26:54 -04:00
Simon Charette
767ba00976 Fixed #27209 -- Fixed typo in docs/ref/models/database-functions.txt.
Thanks Valentin Ignatyev for the report.
2016-09-12 08:07:30 -04:00
Abhishek Bera
f3b601f11a Fixed #26987 -- Documented using QuerySet.get() without arguments. 2016-08-19 17:15:33 -04:00
Ian Foote
39f35d4b9d Fixed #25871 -- Added expressions support to QuerySet.values(). 2016-08-18 16:05:15 -04:00
Victor Oliveira da Silva
d7804662f8 Made cosmetic edits to Field.default docs. 2016-08-15 10:44:39 -04:00
Tim Graham
9556005425 Fixed #27048 -- Documented that refresh_from_db() doesn't reload @cached_properties. 2016-08-12 18:49:21 -04:00
Akshesh
6e07ec3f65 Fixed #27030 -- Added contrib.postgres.indexes.GinIndex. 2016-08-12 18:37:03 -04:00
Akshesh
311a8e8d50 Fixed #20888 -- Added support for column order in class-based indexes. 2016-08-12 15:52:16 -04:00
Simon Charette
b8e6e1b43b
Fixed #26500 -- Added SKIP LOCKED support to select_for_update().
Thanks Tim for the review.
2016-08-08 12:01:43 -04:00
Akshesh
6a8372e6ec Fixed #26808 -- Added Meta.indexes for class-based indexes.
* Added the index name to its deconstruction.
* Added indexes to sqlite3.schema._remake_table() so that indexes
  aren't dropped when _remake_table() is called.

Thanks timgraham & MarkusH for review and advice.
2016-08-05 18:12:51 -04:00
Yoong Kang Lim
d30febb4e5 Fixed #26706 -- Made RelatedManager modification methods clear prefetch_related() cache. 2016-08-05 13:32:27 -04:00