Skip to content
Browse files

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...
1 parent 0b9330b commit 888cf1f889785cc6746a9a1a9019f3e2a7218eb1 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/validators.py
View
2 django/core/validators.py
@@ -237,7 +237,7 @@ def __init__(self, other_field_names, error_message="Please enter both fields or
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):

0 comments on commit 888cf1f

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