Merge remote-tracking branch 'upstream/master'

This commit is contained in:
David Henderson 2012-12-14 08:32:15 +00:00
commit b1438d0deb
2 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ python:
env:
- DJANGO=https://github.com/django/django/zipball/master
- DJANGO=django==1.4.1 --use-mirrors
- DJANGO=django==1.3.3 --use-mirrors
- DJANGO=django==1.4.3 --use-mirrors
- DJANGO=django==1.3.5 --use-mirrors
install:
- pip install $DJANGO

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 #####