mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Merge 4b77cbe709
into 836e49b535
This commit is contained in:
commit
53f92883d4
|
@ -381,7 +381,9 @@ class HyperlinkedRelatedField(RelatedField):
|
||||||
'Could not resolve URL for hyperlinked relationship using '
|
'Could not resolve URL for hyperlinked relationship using '
|
||||||
'view name "%s". You may have failed to include the related '
|
'view name "%s". You may have failed to include the related '
|
||||||
'model in your API, or incorrectly configured the '
|
'model in your API, or incorrectly configured the '
|
||||||
'`lookup_field` attribute on this field.'
|
'`lookup_field` attribute on this field, or perhaps your'
|
||||||
|
'data contains an empty value for the `lookup_field` you'
|
||||||
|
'specified.'
|
||||||
)
|
)
|
||||||
if value in ('', None):
|
if value in ('', None):
|
||||||
value_string = {'': 'the empty string', None: 'None'}[value]
|
value_string = {'': 'the empty string', None: 'None'}[value]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user