Hi, I upgraded from DRF 2.4x to DRF 3.5.3 and Django 1.7.4 to Django 1.10.3 and am in the process of converting code to use the new API.
My code is now returning the error: Could not resolve URL for hyperlinked relationship using view name "company-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field. I have read http://www.django-rest-framework.org/topics/3.0-announcement/#changes-to-hyperlinkedmodelserializer and am curious if this is the cause. My serializer(s): *class* *CompanyShortSerializer*(serializers.HyperlinkedModelSerializer): name = serializers.CharField() logo = HyperlinkedFileField() description = serializers.CharField() *class* *Meta*: model = Company fields = ('id', 'url', 'name', 'description') extra_kwargs = { 'url': {'view_name': 'hired:company-detail'} } *class* *CompanyUserReadSerializer* (serializers.HyperlinkedModelSerializer): owner = UserSerializer(read_only=True) company = CompanyShortSerializer() title = EscapedCharField() role = EscapedCharField() *class* *Meta*: model = CompanyUser fields = ( 'url', 'id', 'owner', 'company', 'title', 'role', 'is_verified', 'is_demo','color' ) read_only_fields = ('is_verified',) -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
