1
0
mirror of https://github.com/django/django.git synced 2025-04-15 21:04:36 +00:00

651 Commits

Author SHA1 Message Date
Tim Graham
59ea6fd686 [1.10.x] Fixed #27511 -- Corrected Field.related_model docs about GenericRelation.
Backport of 55adfc076030fc6be2c8d459c4c0a5c91cd4c94c from master
2016-11-21 12:53:35 -05:00
Jonatas CD
02ac92888e [1.10.x] Fixed #27482 -- Doc'd an example of Case() in QuerySet.filter().
Backport of b28c6ca7631e13ea29490bf51a367ab10198c74c from master
2016-11-17 12:39:56 -05:00
Jonatas CD
af0f01558b [1.10.x] Fixed #26985 -- Doc'd that ForeignKey.to_field reference must be unique.
Backport of 9da45ff352db1d1b7c64e5c724e9b0b31822b967 from master
2016-11-15 11:21:58 -05:00
Tim Graham
3dc480fcd2 [1.10.x] Inlined a note in docs/ref/models/expressions.txt.
Backport of 0d6c7cae7c4bc3ecd12c5a0d929384f3aa3e90d1 from master
2016-11-09 08:21:17 -05:00
Jop Reyntjes
89d960121d [1.10.x] Fixed #27414 -- Doc'd that F() expressions on relations return pk values.
Backport of f8fab6f90233c7114d642dfe01a4e6d4cb14ee7d from master
2016-11-09 07:13:24 -05:00
Marti Raudsepp
ae91fc786c [1.10.x] Updated postgresql.org links to https and made them canonical.
Backport of 51fbe2a60d9c7ff3fe62688ad262ccda648f506d from master
2016-10-25 11:43:54 -04:00
Tim Graham
e781197d1c [1.10.x] Fixed #27342 -- Corrected QuerySet.update_or_create() example.
Backport of 51b83d9e5113ea5b81d04f4d117bd5acd3c1b822 from master
2016-10-13 11:03:09 -04:00
Tim Graham
be535960b1 [1.10.x] Fixed #25475 -- Doc'd how to use a literal % in Func.template.
Backport of c60feb6999f83bfd1fdabff01f0dd4a26d72e158 from master
2016-10-07 10:25:07 -04:00
Adam Chainz
27d352800c [1.10.x] Doc'd that model instances with pk=None don't compare equal.
Backport of 224fe22bf1628c1feff110ce993dcb33880bf3a3 from master
2016-10-07 09:02:10 -04:00
Tim Graham
c37e170f7a [1.10.x] Updated links to the current version of MySQL docs.
Backport of 98196766769c2ed8816772b60a2e8b79028963a2 from master
2016-09-30 09:15:49 -04:00
zhuanyenan
ddd77d5fd3 [1.10.x] Corrected docs for return type of Field.formfield().
Backport of 17677d510f65012531a5af57fd056fb15cfe1067 from master
2016-09-17 14:28:08 -04:00
Simon Charette
23cf7e50d1 [1.10.x] Fixed #27209 -- Fixed typo in docs/ref/models/database-functions.txt.
Thanks Valentin Ignatyev for the report.

Backport of 767ba009764c6640b20ea6a6dc6ee2559cc87800 from master
2016-09-12 08:07:43 -04:00
Abhishek Bera
a77d979cbd [1.10.x] Fixed #26987 -- Documented using QuerySet.get() without arguments.
Backport of f3b601f11a7b56777ac1173a390787d176f95fe3 from master
2016-08-19 17:17:57 -04:00
Victor Oliveira da Silva
dad8ec49c4 [1.10.x] Made cosmetic edits to Field.default docs.
Backport of d7804662f8d929a3d363ef7a73e6cad9243acd96 from master
2016-08-15 10:46:02 -04:00
Tim Graham
eea74edc70 [1.10.x] Fixed #27048 -- Documented that refresh_from_db() doesn't reload @cached_properties.
Backport of 9556005425ca3d1c8c2a0e8b48e228e63a0bdd32 from master
2016-08-12 18:49:42 -04:00
Tim Graham
a4df6577df [1.10.x] Fixed #26925 -- Linked aggregation ordering topic from Meta.ordering docs.
Backport of 3aaf6cf0f3288986c4ce56defea26420f8a48534 from master
2016-07-25 06:25:26 -04:00
petedmarsh
5cc6190788 [1.10.x] Fixed #26899 -- Documented why RawSQL params is a required parameter.
Backport of 7bf3ba0d0c700670d13d7683eec7bd3eb3d4dd1f from master
2016-07-21 10:29:06 -04:00
Tim Graham
6646a396cc [1.10.x] Fixed inconsistent indentation in docs/ref/models/options.txt
Backport of ba246bd5fe3c3c392cb0a56648542dbca435d107 from master
2016-07-15 13:43:05 -04:00
Simon Charette
cf6f0e9978 [1.10.x] Refs #25774 -- Adjusted datetime database function docs field names.
Backport of 90468079ec6f72a1b8b6a908d81d3201a3204b24 from master
2016-07-08 12:37:24 -04:00
Romain Garrigues
8976d08edb [1.10.x] Fixed #25461 -- Corrected meta API code examples to account for MTI.
In the case of multiple-table inheritance models, get_all_related_objects() and
get_all_related_objects_with_model() don't return the auto-created
OneToOneField, but the new examples didn't account for this.

Backport of 8be84e2ac42b2556fd6fa07794b3708b143ef341 from master
2016-07-06 09:28:51 -04:00
Tsering
be03ce25c4 [1.10.x] Refs #23386 -- Documented that F() expressions are applied on each model.save()
Backport of fc4b4fd5850989458d6e54de12a29b2e40e94ce8 from master
2016-06-28 16:27:36 -04:00
Tim Graham
45a650777e [1.10.x] Fixed #26787 -- Documented deleting and reloading of model instance fields.
Thanks Julien Hartmann for the report.

Backport of 20d1cb33c2ec1242e16c49deb88e8c70517b2d1a from master
2016-06-21 15:25:16 -04:00
Sergey Fedoseev
f9b3a6a76f [1.10.x] Refs #14030 -- Updated docs per "Improved expression support for python values."
Complements e2d6e14662d780383e18066a3182155fb5b7747b.

Backport of db613f4f1250971942f766dcf97c22234a3aa14e from master
2016-06-15 10:35:34 -04:00
Ed Henderson
521772ff07 [1.10.x] Fixed #26021 -- Applied hanging indentation to docs.
Backport of 4a4d7f980e2a66756e1e424f7648dcd28ff765b7 from master
2016-06-03 11:49:24 -04:00
Chad Shryock
cd4246aab1 [1.10.x] Fixed #26526 -- Documented QuerySet.latest()'s dependency on database ordering.
Backport of e6c5e68acd4bff90e371fd148ed6976e147692ad from master
2016-06-02 19:42:57 -04:00
Florian Apolloner
7bc199aa64 [1.10.x] Fixed a typo in the docs.
Backport of 62e4f8ec435a4b600c8efb071201070a2443477e from master
2016-05-31 10:59:25 -04:00
Ketan Bhatt
c2dde7561a [1.10.x] Fixed #26679 -- Documented which methods are disabled on RelatedManager if there's an intermediate table.
Backport of 59523c06fe482232dad9dc63ef0baab63418196d from master
2016-05-31 07:15:15 -04:00
Nick Smith
06db2b88cf [1.10.x] Fixed typo in docs/ref/models/querysets.txt
Backport of 838386815f53fe2cba1b42c498420881660079d4 from master
2016-05-27 09:13:12 -04:00
Marti Raudsepp
b9ae662c97 Fixed #26620 -- Made Model.refresh_from_db() fail when passed unknown kwargs. 2016-05-18 09:27:23 -04:00
Josh Smeaton
2a4af0ea43 Fixed #25774 -- Refactor datetime expressions into public API 2016-05-18 20:14:58 +10: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
Tim Graham
e475e84970 Refs #26021 -- Used hanging indentation in some doc examples. 2016-05-14 19:06:31 -04:00
Tim Graham
f5ff5010cd Fixed #26483 -- Updated docs.python.org links to use Intersphinx. 2016-05-08 18:07:43 -04:00
Tobias McNulty
dbd99de6fa Fixed #26508 -- Clarified docs for various FieldFile methods. 2016-05-07 12:16:42 -04:00
Claude Paroz
388bb5bd9a Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()
Thanks Tim Graham for completing the initial patch.
2016-05-04 20:02:01 +02:00
Ville Skyttä
575a9a791e Normalized "an SQL" spelling. 2016-05-03 19:30:48 -04:00
Vasiliy Faronov
ac77c55bc5 Fixed #26567 -- Updated references to obsolete RFC2616.
Didn't touch comments where it wasn't obvious that the code adhered to
the newer standard.
2016-05-03 11:14:40 -04:00
Anssi Kääriäinen
7f51876f99 Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 2016-04-29 13:06:32 -04:00
Tim Graham
f945fb24a3 Fixed #26554 -- Updated docs URLs to readthedocs.io 2016-04-28 10:09:57 -04:00
Tim Graham
a755e0657e Removed unused BaseExpression.refs_aggregate().
Unused since afe0bb7b13bb8dc4370f32225238012c873b0ee3.
2016-04-22 13:04:13 -04:00
Tim Graham
5ac7c8f7ab Refs #22268 -- Fixed typo in docs/ref/models/querysets.txt 2016-04-08 11:43:02 -04:00
Iacopo Spalletti
7d485d5d75 Fixed #22268 -- Documented values_list() behavior for multivalued relations.a
Thanks Sai Krishna for the initial patch.
2016-04-02 07:20:11 -04:00
Simon Charette
64aba7a8ab Fixed #26438 -- Fixed multiple .objects typos in the docs.
Thanks Pablo Oubiña for the report.
2016-03-31 18:27:47 -04:00
Claude Paroz
03b6947728 Fixed #24932 -- Added Cast database function.
Thanks Ian Foote for the initial patch.
2016-03-29 08:14:33 -04:00
Kai Feldhoff
5336158990 Fixed #25759 -- Added keyword arguments to customize Expressions' as_sql(). 2016-03-29 08:09:58 -04:00
Kai Feldhoff
5ca08f7cab Refs #25759 -- Documented customizing expressions' SQL on other databases. 2016-03-21 20:20:29 -04:00
Duane Hilton
ca5c05ddbe Fixed #26239 -- Added a note about how auto_now works with QuerySet.update(). 2016-03-12 12:39:00 -05:00
Tim Graham
de8a11ba18 Fixed #26321 -- Added missing "for_save" parameter in expressions example.
Thanks tomaszn for the patch.
2016-03-03 19:36:03 -05:00
Tim Graham
c0181f2c1f Fixed #26310 -- Documented that a queryset ordering must be specified to ensure ordered results.
Thanks Simon Charette for review.
2016-03-03 17:54:07 -05:00
Tim Graham
1d17bb4f7d Refs #19527 -- Fixed typo in docs/ref/models/querysets.txt. 2016-03-02 15:54:46 -05:00