diff options
| author | Daniel Pyrathon <pirosb3@gmail.com> | 2014-03-13 11:32:20 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-05-16 05:57:19 -0400 |
| commit | cb15231888df2545356ad307eaea07f36aa0e8e0 (patch) | |
| tree | 74a83620630234fbb739eabf2546bfb82cbedd64 /docs/ref/checks.txt | |
| parent | 8a9d54aa694b45f82c039912d417e2a391198852 (diff) | |
Fixed #21798 -- Added check for DateTime mutually exclusive options
Added DateTimeCheckMixin to avoid the use of default, auto_now, and
auto_now_add options together. Added the fields.E151 Error that is raised
if one or more of these options are used together.
Diffstat (limited to 'docs/ref/checks.txt')
| -rw-r--r-- | docs/ref/checks.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index c8e97df660..f03437e276 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -67,6 +67,7 @@ Fields * **fields.E134**: ``max_digits`` must be greater or equal to ``decimal_places``. * **fields.E140**: FilePathFields must have either ``allow_files`` or ``allow_folders`` set to True. * **fields.E150**: GenericIPAddressFields cannot accept blank values if null values are not allowed, as blank values are stored as nulls. +* **fields.E151**: The options ``auto_now``, ``auto_now_add``, and ``default`` are mutually exclusive. Only one of these options may be present. File Fields ~~~~~~~~~~~ |
