Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent c58e572 commit 406f9d1fa0424e9861c2d20a1001dbf4e29d4c9c @jphalip jphalip committed Oct 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 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.

0 comments on commit 406f9d1

Please sign in to comment.