From 888cf1f889785cc6746a9a1a9019f3e2a7218eb1 Mon Sep 17 00:00:00 2001
From: Adrian Holovaty <adrian@holovaty.com>
Date: Fri, 5 Aug 2005 15:41:58 +0000
Subject: [PATCH] Fixed #275 -- Bug in validators.RequiredIfOtherFieldsGiven.
 Thanks, jhernandez

git-svn-id: http://code.djangoproject.com/svn/django/trunk@410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
---
 django/core/validators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django/core/validators.py b/django/core/validators.py
index b5ec72e487..cb7778520f 100644
--- a/django/core/validators.py
+++ b/django/core/validators.py
@@ -237,7 +237,7 @@ class RequiredIfOtherFieldsGiven:
 
     def __call__(self, field_data, all_data):
         for field in self.other:
-            if all_data.get(field) and not field_data:
+            if all_data.get(field, False) and not field_data:
                 raise ValidationError, self.error_message
 
 class RequiredIfOtherFieldGiven(RequiredIfOtherFieldsGiven):