Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 888cf1f889785cc6746a9a1a9019f3e2a7218eb1 1 parent 0b9330b
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/validators.py
2  django/core/validators.py
View
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.