API error
Created by: njoyard
On /api/dossier_scores/
:
ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "representative-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.
(6 additional frame(s) were not displayed)
...
File "rest_framework/serializers.py", line 674, in data
ret = super(ListSerializer, self).data
File "rest_framework/serializers.py", line 239, in data
self._data = self.to_representation(self.instance)
File "rest_framework/serializers.py", line 614, in to_representation
self.child.to_representation(item) for item in iterable
File "rest_framework/serializers.py", line 472, in to_representation
ret[field.field_name] = field.to_representation(attribute)
File "rest_framework/relations.py", line 366, in to_representation
raise ImproperlyConfigured(msg % self.view_name)