Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Django 1.10rc1 'ForeignKey' object has not attribute 'related' #262

Closed
Milestone
@tomtom5152

Description

When attempting to use the json_api renderer with Django 1.10rc1 I'm getting a strange error about field.related not being set. It appears this was a private attribute that was deprecated in 1.8 and has finally been removed.

Partial trace

lib/python3.5/site-packages/rest_framework_json_api/utils.py", line 194, in get_related_resource_type
 relation_model = parent_model_relation.field.related.model
AttributeError: 'ForeignKey' object has no attribute 'related'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /