Daniel Roseman
2e9d9dd6b1
[1.11.x] Fixed reference to nonexistent __between lookup.
...
Backport of e6c21217d3c79a507ebab290ba41116407dd7f2a from master
2018-04-04 09:44:01 -04:00
Mariusz Felisiak
649d5eaa8b
[1.11.x] Fixed #29032 -- Fixed an example of using expressions in QuerySet.values().
...
Backport of 7fbb1bd00d8a3e9a834de83d36ebcbff15c18938 from master
2018-01-19 08:58:46 +01:00
Mariusz Felisiak
6731672060
[1.11.x] Fixed #28781 -- Added QuerySet.values()/values_list() support for union(), difference(), and intersection().
...
Thanks Tim Graham for the review.
Backport of 2d3cc94284674638c334670903d49565039d77ae from master
2017-11-12 14:33:41 +01:00
Jozef
0f9de3976c
[1.11.x] Fixed typo in docs/ref/models/querysets.txt.
...
Backport of 3bd69b126115102a4630354c876e6c7cc2d68f8f from master
2017-10-17 10:07:43 -04:00
Stefan Schneider
251190cc59
[1.11.x] Fixed #28653 -- Added missing ForeignKey.on_delete argument in docs.
...
Backport of 08c8c3ead97893ec0e1dece699525ad7ed27c2d7 from master
2017-09-29 11:38:47 -04:00
Tim Graham
a86d95726b
[1.11.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:22:00 -04:00
Michael
ddea2166f1
[1.11.x] Fixed #28568 -- Fixed typo in docs/ref/models/database-functions.txt.
...
And made an example use naming consistent with the rest of the doc.
Backport of 3f2b1d926bb3a72b4c3d2cd958455ebb9b4ca458 from master
2017-09-04 14:41:17 -04:00
Tim Graham
d236f30237
[1.11.x] Fixed #28557 -- Fixed ForeignKey/OneToOneField/ManyToManyField argument name in docs.
...
Backport of 6e4a34580d05ca8036c2bc1f7a53558cdc0cc77f from master
2017-09-01 21:44:06 -04:00
Mathieu Hinderyckx
1214e7c1b1
[1.11.x] Clarified Concat example in docs.
...
Backport of cf5740fbc8414ab722b938f92b4363ff00d8db88 from master
2017-08-14 14:57:34 -04:00
Tim Graham
479554f569
[1.11.x] Fixed #28471 -- Clarified that Meta.indexes is preferred to index_together.
...
Backport of d18227e341ed044980d02a1f65f3874166552ded from master
2017-08-08 09:48:21 -04:00
Tim Graham
05a828a1ae
[1.11.x] Fixed #28466 -- Clarified the definition of a lazy relationship.
...
Backport of 50a97edc1a01f3d5325f0be1b91e7c77c3ba7dc0 from master
2017-08-07 15:53:44 -04:00
Tomer Chachamu
a5e91ab1fb
[1.11.x] Doc'd the need to remove default ordering on Subquery aggregates.
...
Backport of 62917cee5ac75693aa5d9a3de5d8935da2f011df from master
2017-07-18 13:11:26 -04:00
Florian Apolloner
9350f77c69
[1.11.x] Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), and intersection() queries.
...
Backport of adab280cefb15659c39558ac26ea392b0a1e456c from master
2017-07-15 09:10:42 -04:00
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