diff options
| author | Julien Phalip <jphalip@gmail.com> | 2011-10-13 12:23:58 +0000 |
|---|---|---|
| committer | Julien Phalip <jphalip@gmail.com> | 2011-10-13 12:23:58 +0000 |
| commit | 406f9d1fa0424e9861c2d20a1001dbf4e29d4c9c (patch) | |
| tree | 168f0596931c669f8bec1229068246cab3909b48 /docs | |
| parent | c58e5724bcebc74ccfbc49a4a29de6fd0fa6103e (diff) | |
Fixed #7609 -- Noted in the model fields reference documentation that `PositiveIntegerField` accepts the value 0 for backwards-compatibility reasons. Thanks to everyone involved in the resolution of this issue, including Paul Collins for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index cc89142b4d..6c9dbf5a87 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -805,7 +805,8 @@ this as a ``<select>`` box with "Unknown", "Yes" and "No" choices. .. class:: PositiveIntegerField([**options]) -Like an :class:`IntegerField`, but must be positive. +Like an :class:`IntegerField`, but must be either positive or zero (`0`). +The value `0` is accepted for backward compatibility reasons. ``PositiveSmallIntegerField`` ----------------------------- |
