django/django — pull request #251 by bremac (2012-08-06 05:47:43+00:00)
Title: Fixed #18724: 0 bypassed IntegerField choice validation

A stray coercion of a value to a boolean in the field validation logic was causing the value 0 to bypass checks against the choices for the field. This change instead checks the value against None and validators.EMPTY_VALUES.