fixed validationerror usage

This commit is contained in:
Stephan Groß 2012-12-13 16:44:45 +01:00
parent 497da7fc69
commit 54d9cd4dba

View File

@ -581,7 +581,7 @@ class HyperlinkedRelatedField(RelatedField):
except:
pass
raise ValidationError('Could not resolve URL for field using view name "%s"', view_name)
raise ValidationError('Could not resolve URL for field using view name "%s"' % view_name)
def from_native(self, value):
# Convert URL -> model instance pk
@ -680,7 +680,7 @@ class HyperlinkedIdentityField(Field):
except:
pass
raise ValidationError('Could not resolve URL for field using view name "%s"', view_name)
raise ValidationError('Could not resolve URL for field using view name "%s"' % view_name)
##### Typed Fields #####