Skip to content

Multi-words relation names error pointers are misformed #1069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
leo-naeka opened this issue Jun 28, 2022 · 0 comments · Fixed by #1070
Closed
2 tasks done

Multi-words relation names error pointers are misformed #1069

leo-naeka opened this issue Jun 28, 2022 · 0 comments · Fixed by #1070
Labels

Comments

@leo-naeka
Copy link
Contributor

leo-naeka commented Jun 28, 2022

Description of the Bug Report

#986 fixed #413 but did not covered multiple words in relations names.

Therefore, when fields names formatting is enforced, pointers still refers to /attributes/ since inflection breaks field identification as a relationship.

A PR with the failing tests and the fix are on the way.

Checklist

  • Certain that this is a bug (if unsure or you have a question use discussions instead)
  • Code snippet or unit test added to reproduce bug
@leo-naeka leo-naeka added the bug label Jun 28, 2022
leo-naeka added a commit to leo-naeka/django-rest-framework-json-api that referenced this issue Jun 28, 2022
leo-naeka added a commit to leo-naeka/django-rest-framework-json-api that referenced this issue Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant