Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 406f9d1fa0424e9861c2d20a1001dbf4e29d4c9c 1 parent c58e572
Julien Phalip authored October 13, 2011

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  docs/ref/models/fields.txt
3  docs/ref/models/fields.txt
@@ -805,7 +805,8 @@ this as a ``<select>`` box with "Unknown", "Yes" and "No" choices.
805 805
 
806 806
 .. class:: PositiveIntegerField([**options])
807 807
 
808  
-Like an :class:`IntegerField`, but must be positive.
  808
+Like an :class:`IntegerField`, but must be either positive or zero (`0`).
  809
+The value `0` is accepted for backward compatibility reasons.
809 810
 
810 811
 ``PositiveSmallIntegerField``
811 812
 -----------------------------

0 notes on commit 406f9d1

Please sign in to comment.
Something went wrong with that request. Please try again.