477 Commits

Author SHA1 Message Date
ovalseven8
fbae9c0e02 [1.11.x] Fixed #29192 -- Removed inaccurate statement regarding overriding fields from abstract base classes.
Partial backport of 22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd from master
2018-03-13 13:56:50 -04:00
Luke Plant
a09e974688 [1.11.x] Linked to prefetch_related_objects func in DB optimization docs.
Backport of e283c1a from master
2017-11-23 21:36:38 +03:00
Tim Graham
d9b457d906 [1.11.x] Fixed typo in docs/topics/db/aggregation.txt.
Backport of 00b93c2b1ecdda978f067309c6feafda633a7264 from master
2017-11-07 09:03:35 -05: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
Stefan Schneider
e8a82e82c1 [1.11.x] Fixed #28648 -- Corrected typo in docs/topics/db/queries.txt.
Backport of 293df73fb67a56c0417af8c39f808f64bc03cbeb from master
2017-09-29 10:32:12 -04:00
Jonatas CD
0221039309 [1.11.x] Fixed #28479 -- Doc'd that transaction rollback doesn't revert model state.
Backport of c9b22707b0703db6c6ddaebdd00e2cd33d182e40 from master
2017-09-04 15:43:42 -04:00
Jeremy Satterfield
e921e98387 [1.11.x] Fixed #28332 -- Fixed diamond inheritence example in docs.
Backport of 473ab4610ef90be05f09127aa37cd20bcda5875e from master
2017-09-02 14:33:19 -04:00
Mariusz Felisiak
fe51017efd [1.11.x] Fixed #23766 -- Doc'd CursorWrapper.callproc().
Thanks Tim Graham for the review.
Backport of 660d50805b6788d592b4f1fae706b725baf0195c from master
2017-08-10 22:30:28 +02: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
Tushar Malik
664f5708c8 [1.11.x] Added missing import in docs/topics/db/queries.txt.
Backport of 14251324e651b43897ae04ecaf543153b2b9b587 from master
2017-07-04 20:18:25 -04:00
Tim Graham
bc9c6fe7cb [1.11.x] Fixed #28233 -- Used a simpler example in the aggregation "cheat sheet" docs.
Backport of 49b9c89d4094574117c9d5b7a696ce152e02553a from master
2017-06-07 09:43:48 -04:00
Claude Paroz
65dfe579d0 [1.11.x] Updated various links in docs to avoid redirects
Thanks Tim Graham and Mariusz Felisiak for review and completion.
2017-05-22 19:32:02 +02:00
Paolo Melchiorre
fc18b51978 [1.11.x] Fixed typos in docs/topic/db/search.txt.
Backport of eac396a5d08a2c7424cd897b54360531dc0ceae5 from master
2017-04-08 07:26:29 -04:00
Simon Charette
f0bf4bd79c [1.11.x] Fixed #28003 -- Doc'd what an auto-created OneToOneField parent_link looks like.
Backport of 0ad7e8f71fbf75def0e48ef59adc2d56a6244b38 from master
2017-04-01 21:22:19 -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
Tim Graham
22eb15a18c [1.11.x] Fixed #27875 -- Doc'd manager_inheritance_from_future in manager docs. 2017-02-24 16:15:36 -05:00
M Somerville
56c87b51ab Fixed typo in docs/topics/db/managers.txt. 2017-01-11 18:31:11 -05:00
Maxime Lorant
241e1e3cd7 Removed SHOUTING in doc examples. 2017-01-09 17:00:44 -05:00
anabelensc
1c12df4aa6 Fixed #25912 -- Added binary left/right shift operators to F expressions.
Thanks Mariusz Felisiak for review and MySQL advice.
2017-01-03 14:15:46 -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
2f44fa7f06 Documented how to copy a OneToOneField.
Thanks Anton Gilgur for the report and review.
2016-12-17 08:39:52 -05:00
Tim Graham
8dac9890a5 Refs #25550 -- Removed a deprecated reverse assignment example in docs. 2016-12-17 08:39:52 -05:00
Tim Graham
3ce212a23c Fixed #27494 -- Fixed typos in docs/topics/db/models.txt. 2016-11-16 07:28:20 -05:00
Simon Charette
9e4fd3301d Refs #25284 -- Corrected an obsolete implicit __in lookup example.
Thanks IRC alias rpkilby for the report.
2016-11-15 08:25:02 -05:00
Jezeniel Zapanta
48f45431eb Fixed typo in docs/topics/db/multi-db.txt. 2016-11-11 12:40:06 -05:00
Timothy Allen
5595db9504 Updated docs/topics/db/queries.txt examples to use print() function. 2016-10-31 15:22:32 -04:00
Marti Raudsepp
51fbe2a60d Updated postgresql.org links to https and made them canonical. 2016-10-25 11:43:32 -04:00
Jonatas CD
e8728f03f0 Refs #11078 -- Doc'd Meta inheritance in proxy models. 2016-10-04 19:53:24 -04:00
Tim Graham
9819676676 Updated links to the current version of MySQL docs. 2016-09-30 09:14:17 -04:00
Chris Jerdonek
ccf7adb064 Fixed #27172 -- Closed database cursor explicitly in two doc examples 2016-09-07 12:14:29 +02:00
Shai Berger
c93ac9cf42 Refs #25850, #27142, #27110 -- Documented migration history consistency checks. 2016-09-01 18:49:10 -04:00
Tim Graham
789f9c9b29 Refs #27164 -- Fixed typo in docs/topics/db/multi-db.txt 2016-09-01 09:53:24 -04:00
Berker Peksag
a02b5848ae Replaced property() usage with decorator in several places. 2016-08-25 20:06:22 -04:00
Tim Graham
8fb53c50ce Fixed #19222 -- Documented that default managers aren't used for related queries. 2016-08-16 13:12:55 -04:00
Timothy Allen
df92f6f2e3 Documented how allow_migrate() interacts with makemigrations. 2016-08-15 13:34:54 -04:00
Liz Lemon
ea65c7cb48 Edited multi-db topic guide for grammar and clarity. 2016-08-05 12:55:32 -04:00
Tim Graham
3aaf6cf0f3 Fixed #26925 -- Linked aggregation ordering topic from Meta.ordering docs. 2016-07-25 06:21:39 -04:00
Tim Graham
00551c3eff Fixed typo in docs/topics/db/managers.txt 2016-06-20 09:07:20 -04:00
Evan Palmer
84d8d1d715 Fixed #25127 -- Documented how to organize models in a package. 2016-06-04 11:47:55 -04:00
Ed Henderson
4a4d7f980e Fixed #26021 -- Applied hanging indentation to docs. 2016-06-03 11:44:34 -04:00
MariKiev
30d110ef43 Added imports to docs/topics/db/aggregation.txt example. 2016-05-25 09:52:33 -04:00
Tim Graham
46a38307c2 Removed versionadded/changed annotations for 1.9. 2016-05-20 11:44:29 -04:00
Loïc Bistuer
ed0ff913c6 Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers.
This deprecates use_for_related_fields.

Old API:

class CustomManager(models.Model):
    use_for_related_fields = True

class Model(models.Model):
    custom_manager = CustomManager()

New API:

class Model(models.Model):
    custom_manager = CustomManager()

    class Meta:
        base_manager_name = 'custom_manager'

Refs #20932, #25897.

Thanks Carl Meyer for the guidance throughout this work.
Thanks Tim Graham for writing the docs.
2016-05-17 12:07:22 +07:00
Loïc Bistuer
3a47d42fa3 Fixed #20932, #25897 -- Streamlined manager inheritance. 2016-05-17 02:29:22 +07:00
Aron Podrigal
85ef98dc6e Fixed #24305 -- Allowed overriding fields on abstract models.
Fields inherited from abstract base classes may be overridden like
any other Python attribute. Inheriting from multiple models/classes
with the same attribute name will follow the MRO.
2016-05-16 07:32:21 -04:00
Tim Graham
e475e84970 Refs #26021 -- Used hanging indentation in some doc examples. 2016-05-14 19:06:31 -04:00
Tim Graham
af69c9113c Fixed typo in docs/topics/db/models.txt 2016-05-13 15:18:33 -04:00
Matthew Somerville
1962a96a30 Fixed #24938 -- Added PostgreSQL trigram support. 2016-05-13 12:38:21 -04:00
Tim Graham
f5ff5010cd Fixed #26483 -- Updated docs.python.org links to use Intersphinx. 2016-05-08 18:07:43 -04:00
shiblystory
6ae617dc57 Fixed #26595 -- Removed unnecessary save() in one_to_one.txt example. 2016-05-07 06:53:03 -04:00