254 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
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
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
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
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
Cameron Curry
622ead6aaf Fixed #28937 -- Allowed BinaryField to be editable=True. 2017-12-22 16:31:46 -05:00
Tim Graham
5446b72003 Removed versionadded/changed annotations for 1.11. 2017-09-22 12:51:18 -04:00
Tim Graham
6e4a34580d Fixed #28557 -- Fixed ForeignKey/OneToOneField/ManyToManyField argument name in docs. 2017-09-01 20:03:32 -04:00
Tim Graham
50a97edc1a Fixed #28466 -- Clarified the definition of a lazy relationship. 2017-08-07 15:51:46 -04:00
Tim Graham
487362fa8f Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-07-20 16:30:08 -04:00
Josh Schneier
98ee57e343 Removed nonexistent methods from File's docs.
read() and write() were removed in 68a890e79f660484d05482902663b6168f0bd71e.
2017-04-25 19:49:00 -04:00
Taavi Teska
5dbf1c4b23 Fixed #27947 -- Doc'd that model Field.error_messages often don't propagate to forms. 2017-04-10 14:24:44 -04:00
Mariusz Felisiak
a3af8c99d9 Removed extra characters in docs header underlines. 2017-03-20 18:30:32 -04:00
Tim Graham
2d96c027f5 Refs #23919 -- Removed obsolete MySQLdb references. 2017-01-25 10:16:10 -05:00
Tim Graham
e27e4c0339 Removed versionadded/changed annotations for 1.10. 2017-01-17 20:52:05 -05:00
Tim Graham
bcf3532ede Refs #26154 -- Removed deprecated CommaSeparatedIntegerField. 2017-01-17 20:52:02 -05:00
Tim Graham
ddd3268975 Refs #21127 -- Required on_delete for ForeignKey/OneToOneField.
Per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
55adfc0760 Fixed #27511 -- Corrected Field.related_model docs about GenericRelation. 2016-11-21 12:30:54 -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
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
zhuanyenan
17677d510f Corrected docs for return type of Field.formfield(). 2016-09-17 14:26:54 -04:00
Victor Oliveira da Silva
d7804662f8 Made cosmetic edits to Field.default docs. 2016-08-15 10:44:39 -04:00
Jon Dufresne
267dc4addd Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.
Previously, empty values were saved as strings.
2016-06-13 09:14:36 -04:00
Ed Henderson
4a4d7f980e Fixed #26021 -- Applied hanging indentation to docs. 2016-06-03 11:44:34 -04:00
Tim Graham
46a38307c2 Removed versionadded/changed annotations for 1.9. 2016-05-20 11:44:29 -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
Tim Graham
f945fb24a3 Fixed #26554 -- Updated docs URLs to readthedocs.io 2016-04-28 10:09:57 -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
Marc Tamlyn
8ddc79a799 Fixed #26285 -- Deprecated the MySQL-specific __search lookup. 2016-03-02 14:41:56 -05:00
Simon Charette
0223e213dd Fixed #26186 -- Documented how app relative relationships of abstract models behave.
This partially reverts commit bc7d201bdbaeac14a49f51a9ef292d6312b4c45e.

Thanks Tim for the review.

Refs #25858.
2016-02-29 22:07:05 -05:00
chenesan
b84f5ab4ec Fixed #26230 -- Made default_related_name affect related_query_name. 2016-02-27 08:48:32 -05:00
Claude Paroz
d43156e1e9 Fixed #26238 -- Raised explicit error for non-editable field in ModelForm
Thanks Luke Crouch for the report and Simon Charette for the review.
2016-02-21 00:24:20 +01:00
Brobin
dca8b916ff Fixed #26154 -- Deprecated CommaSeparatedIntegerField 2016-02-10 17:57:43 -05:00
Tim Graham
8ce8beb3f2 Unified some doc links to OneToOneField and ManyToManyField. 2016-02-01 11:02:26 -05:00
rowanv
a6ef025dfb Fixed #26124 -- Added missing code formatting to docs headers. 2016-02-01 10:42:05 -05:00
James Pulec
f05722a08a Fixed #25354 -- Added class/app_label interpolation for related_query_name. 2016-01-28 11:10:47 -05:00
Alexander Sosnovskiy
2a7ce34600 Fixed #14286 -- Added models.BigAutoField. 2015-12-25 20:01:31 -05:00
Chris Lamb
77b8d8cb6d Discouraged use of /tmp with predictable names.
The use of predictable filenames in /tmp often leads to symlink attacks
so remove the most obvious use of them in the docs.
2015-12-24 09:54:33 -05:00
Alexander Sosnovskiy
b61eab18f7 Fixed #13774 -- Added models.Field.rel_db_type(). 2015-12-04 07:55:41 -05:00
Jon Dufresne
7aabd62380 Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
Bulgantamir Gankhuyag
8bce6fa637 Clarified default value for DateField to emulate auto_now_add. 2015-11-24 08:38:14 -05:00
areski
1e7da99ea6 Corrected GenericIPAddressField protocol parameter doc. 2015-11-19 11:18:31 -05:00
Tim Graham
54848a96dd Removed versionadded/changed annotations for 1.8. 2015-09-23 19:31:11 -04:00