Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Reverse relation fields #223

Open
leplatrem opened this issue Sep 5, 2014 · 0 comments
Open

Reverse relation fields #223

leplatrem opened this issue Sep 5, 2014 · 0 comments

Comments

@leplatrem
Copy link
Contributor

If for example, I define a model Rating with field oneof towards model Movie, I would like to be able to reverse the relation, and obtain all ratings records of a movie :

/models/movie/records/38/ratings

In this view, we should :

  • check that there is a oneof field pointing to movie, with a oneof field that has reverse name "ratings"
  • get all ratings objects whose oneof fields value is 38
  • return the dataset

Could be similar with anyof :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant