From 45112c21a6029b207f3ae2ce06b659bfde2697b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Tue, 11 Aug 2009 17:19:30 +0000 Subject: [PATCH] [soc2009/model-validation] Make empty containers recognized for what they are - empty git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11432 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/validators.py b/django/core/validators.py index 00535243aa..3716cb4898 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -4,8 +4,8 @@ from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import smart_unicode -# These values, if given to to_python(), will trigger the self.required check. -EMPTY_VALUES = (None, '') +# These values, if given to validate(), will trigger the self.required check. +EMPTY_VALUES = (None, '', [], (), {}) def validate_integer(value): try: