aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorStephan Groß2012-12-13 16:44:45 +0100
committerStephan Groß2012-12-13 16:44:45 +0100
commit54d9cd4dba6b207fc8debaba1eda4d330c22e693 (patch)
tree4a6410cec0e4b32ce049d2ddae7485034bfeaf4e /rest_framework
parent497da7fc699b9e88c966e37bc48739865336683d (diff)
downloaddjango-rest-framework-54d9cd4dba6b207fc8debaba1eda4d330c22e693.tar.bz2
fixed validationerror usage
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/fields.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index 75ce1b9f..da588082 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -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 #####