Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #275 -- Bug in validators.RequiredIfOtherFieldsGiven. Thanks, j…

…hernandez

git-svn-id: http://code.djangoproject.com/svn/django/trunk@410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 888cf1f889785cc6746a9a1a9019f3e2a7218eb1 1 parent 0b9330b
Adrian Holovaty authored August 05, 2005

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

  1. 2  django/core/validators.py
2  django/core/validators.py
@@ -237,7 +237,7 @@ def __init__(self, other_field_names, error_message="Please enter both fields or
237 237
 
238 238
     def __call__(self, field_data, all_data):
239 239
         for field in self.other:
240  
-            if all_data.get(field) and not field_data:
  240
+            if all_data.get(field, False) and not field_data:
241 241
                 raise ValidationError, self.error_message
242 242
 
243 243
 class RequiredIfOtherFieldGiven(RequiredIfOtherFieldsGiven):

0 notes on commit 888cf1f

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