794 Commits

Author SHA1 Message Date
Andrea Rabbaglietti
b9b284831a [2.1.x] Emphasized that ForeignKey.on_delete doesn't create a SQL constraint.
Backport of 1b49b792e9f0e6a5ae22f49f75586847e7e183bf from master.
2018-10-10 14:57:01 -04:00
ovalseven8
9e5f4bcedb [2.1.x] Clarified when QuerySet.select_for_update() locks.
Backport of d093e01ec05f661063507503fdf294eb6ee54dee from master.
2018-10-03 15:35:20 -04:00
Jon Dufresne
d95d7d6896 [2.1.x] Added tests for using bytearray with BinaryField and corrected docs.
Backport of b3b47bf5156d400595363fa0029e51ce3f974ff0 from master.
2018-10-01 09:16:47 -04:00
Jon Dufresne
a6e7ebf4ee [2.1.x] Added test of filtering on BinaryField and corrected docs.
Backport of fb2964a4106b1282c4179b6fbbd0374f5be1ccac from master.
2018-09-26 15:07:06 -04:00
Curtis Maloney
1853e2dbf2 [2.1.x] Refs #20910 -- Replaced snippet directive with code-block.
Backport of c49ea6f5911296dcb40190c905e38b43cdc7c7a3 from master
2018-09-10 14:38:08 -04:00
Matt Wiens
6cd16037d8 [2.1.x] Fixed typo in docs/ref/models/fields.txt.
Backport of c122a7c53cf870e61353afa73e59f28226a5c48d from master
2018-08-28 07:53:19 -04:00
Jeff
91af869d70 [2.1.x] Fixed #29646 -- Doc'd the validators that each model and form field uses.
Backport of 3fa3de54152a6b7a67de05ff4ff6fb122c9246e2 from master
2018-08-16 17:05:10 -04:00
Carlton Gibson
a004350193 [2.1.x] Refs #29593, #26891 -- Doc'd RegisterLookupMixin.get_lookups().
Backport of a67ebcb1cbd37e1fc9eddd2da1dda7f319c5ac1d from master
2018-08-03 07:28:21 +02:00
Adam Johnson
2b19d198b1 [2.1.x] Removed out of place sentence in QuerySet.count() docs.
Backport of 2e3ba9f5927048655fffa620bbac4f8b048056a4 from master
2018-08-02 17:36:26 -04:00
luz.paz
adfd261404 [2.1.x] Fixed typos in comments and docs.
Backport of 97e637a87fb45c4de970cca6cb783d93473c9d15 from master
2018-08-01 16:13:18 -04:00
Claude Paroz
430b8254a7 [2.1.x] Added doc links for django.utils.html.escape().
Backport of 6e78e1054933c36a2e0fdf998db780c88bdef4a9 from master
2018-07-18 11:35:39 -04:00
Tim Graham
50dc9fad74 [2.1.x] Fixed #29549 -- Doc'd that Field.choices are enforced by model validation.
Backport of 8b1d361f28c80cb0fa84a3714d711174bd25cdfa from master
2018-07-09 15:06:56 -04:00
Mads Jensen
b505cef63d [2.1.x] Refs #26608 -- Removed incorrect sentence in Expression.contains_over_clause docs.
Backport of ab251fdad251cfb1e9fb61c42b5bfed9d0afe393 from master
2018-07-05 11:38:29 -04:00
Colm O'Connor
e410dce696 [2.1.x] Fixed #21333 -- Doc'd the & and | queryset operators.
Backport of c530428d360daf904c9e98515ea836643a73a54c from master
2018-06-29 20:56:45 -04:00
Jeffrey Yancey
ddd9272c2e [2.1.x] Fixed #29458 -- Doc'd how related_query_name affects Model._meta.get_field().
Backport of 2d6776ffe0b58f729f4372635b49a59da99ca206 from master
2018-06-28 20:02:21 -04:00
Christian Ledermann
d28360aa48 [2.1.x] Refs #29493 -- Doc'd that the QuerySet in lookup accepts a string.
Backport of 11bfe3a83d79c832bd861b6b87f254197fde1659 from master
2018-06-16 15:54:10 -04:00
Jeremy Lainé
36c35aba09 [2.1.x] Fixed #29440 -- Doc'd where the bulk argument applies in RelatedManager.
Backport of 741792961815cf4a95c5ce8ab590dfc7700c6153 from master
2018-06-08 16:40:44 -04:00
Srinivas Reddy Thatiparthy
ecb825abe2 [2.1.x] Fixed #29423 -- Documented Field.value_from_object().
Backport of 4c35a173e881deaff17e5343181dcbc36177a4af from master
2018-05-25 21:32:27 -04:00
Tim Graham
452abf7b43 [2.1.x] Fixed #29398 -- Doc'd that cascade deletion doesn't call delete() of related models.
Backport of e038f98bf342af716cf16e38be989c2d0f126797 from master
2018-05-18 18:44:36 -04:00
olivierdalang
825f0beda8 Fixed #8936 -- Added a view permission and a read-only admin.
Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz>
Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
2018-05-16 06:44:55 -04:00
Mariusz Felisiak
35319bf12c
Alphabetized imports in various docs.
Follow-up of d97cce34096043b019e818a7fb98c0f9f073704c and 7d3fe36c626a3268413eb86d37920f132eb4a54f.
2018-05-12 19:37:42 +02:00
drd0013
5d923f2d8c Fixed #29313 -- Doc'd how to use F() to sort null values. 2018-04-19 20:07:40 -04:00
Tom
c1c163b427 Fixed #28574 -- Added QuerySet.explain(). 2018-04-19 10:52:19 -04:00
Daniel Roseman
e6c21217d3 Fixed reference to nonexistent __between lookup. 2018-04-04 09:43:36 -04:00
Mariusz Felisiak
55cc26941a
Refs #28643 -- Added Repeat database function.
Thanks Tim Graham and Nick Pope for reviews.
2018-04-03 19:36:12 +02:00
Quentin Agren
34c5222837 Fixed #29148 -- Doc'd how to use get_or_create() with Q objects. 2018-03-28 10:46:34 -04:00
Alasdair Nicol
0c100f8b57 Clarified docs about ISO 8601 week numbering. 2018-03-21 20:00:39 -04:00
Jezeniel Zapanta
abe6c5defe Fixed #28514 -- Clarifed docs about idempotence of RelatedManager.add(). 2018-03-20 21:09:08 -04:00
Tim Graham
5fa4f40f45 Fixed #29227 -- Allowed BooleanField to be null=True.
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-20 12:10:10 -04:00
Mariusz Felisiak
cede5111bb
Refs #28643 -- Added LPad and RPad database functions.
Thanks Tim Graham for the review.
2018-03-19 17:35:16 +01:00
Mariusz Felisiak
9421aee35e
Refs #28643 -- Added LTrim, RTrim, and Trim database functions.
Thanks Tim Graham and Mads Jensen for reviews.
2018-03-15 20:57:23 +01:00
Fabrizio Ettore Messina
10c0fe528a Fixed #29178 -- Allowed Index.fields to accept a tuple. 2018-03-08 10:56:55 -05:00
bobort
f82de6bfb1 Refs #28643 -- Added Ord, Chr, Left, and Right database functions. 2018-02-23 10:23:22 -05:00
Tim Graham
548f78ba46
Removed redundant lookup name in register_lookup() calls. 2018-02-19 13:12:13 -05:00
Tim Graham
e917ea6bec Fixed #29126 -- Doc'd the behavior of QuerySet.update_or_create() with manually specified pks. 2018-02-15 13:17:37 -05:00
Matthew Wilkes
2162f0983d Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields). 2018-02-10 19:08:55 -05:00
Sergey Fedoseev
01bfa9219b Fixed typo in bulk_create() documentation. 2018-02-08 10:33:45 +01:00
priyanshsaxena
617d5f410f Fixed #29066 -- Allowed negating query expressions. 2018-01-31 10:54:19 -05:00
Jon Dufresne
136bf5c214 Fixed #29076 -- Made Model.refresh_from_db() clear cached relationships even if the related id doesn't change. 2018-01-30 10:43:53 -05:00
Tim Graham
e6f0e324e2 Fixed #29081 -- Clarified comments in QuerySet.select_related() example. 2018-01-29 11:11:43 -05:00
Sigurd Ljødal
a455e732a0 Fixed #28650 -- Added TruncWeek database function. 2018-01-27 09:59:13 -05:00
Tim Graham
2870879981 Fixed heading level typo in docs/ref/models/database-functions.txt. 2018-01-23 19:48:57 -05:00
Mariusz Felisiak
7fbb1bd00d
Fixed #29032 -- Fixed an example of using expressions in QuerySet.values(). 2018-01-19 08:55:29 +01:00
Mads Jensen
65728550bd Refs #28643 -- Added Replace database function. 2018-01-17 20:46:15 -05:00
Botond Béres
52aa26e697 Fixed #28231 -- Doc'd that QuerySet.bulk_create() casts objs to a list. 2018-01-12 19:56:16 -05:00
Cameron Curry
622ead6aaf Fixed #28937 -- Allowed BinaryField to be editable=True. 2017-12-22 16:31:46 -05:00
Mohammad Esmaeilbeygi
9d1d0e2b70 Fixed import in docs/ref/models/conditional-expressions.txt example. 2017-12-07 08:57:38 -05:00
Igor Starikov
3cc08f4b2b Fixed typo in docs/ref/models/expressions.txt. 2017-12-05 08:39:57 -05:00
Benjamin Bach
bf49d9eb0b Fixed #28815 -- Fixed ExtractYear imports in docs/ref/models/expressions.txt. 2017-11-17 17:30:21 -05:00
Mariusz Felisiak
2d3cc94284
Fixed #28781 -- Added QuerySet.values()/values_list() support for union(), difference(), and intersection().
Thanks Tim Graham for the review.
2017-11-12 14:28:11 +01:00