mirror of
https://github.com/django/django.git
synced 2025-07-07 19:29:12 +00:00
[soc2009/model-validation] Corrected a typo in format string
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@10948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c43edf6d76
commit
8a5e9f6939
@ -42,4 +42,4 @@ class RequiredIfOtherFieldBlank(ComplexValidator):
|
|||||||
def __call__(self, value, all_values={}, obj=None):
|
def __call__(self, value, all_values={}, obj=None):
|
||||||
if self.get_value(self.other_field, all_values, obj) in EMPTY_VALUES:
|
if self.get_value(self.other_field, all_values, obj) in EMPTY_VALUES:
|
||||||
if value in EMPTY_VALUES:
|
if value in EMPTY_VALUES:
|
||||||
raise ValidationError('This field is required if %n is blank.' % self.other_field)
|
raise ValidationError('This field is required if %s is blank.' % self.other_field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user