-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support ToMany
in PrincipalsMixin
#95
Comments
Ah, I left this out when I implemented this because I could not think of any immediate use case. Regarding the implementation: If we say that "any" of the items in the relationship needs to fulfil the need, then it might be enough to replace It is possible that I am overlooking something. It would definitely need some tests. Since I unwisely wrote all the tests against a single database model it might also be necessary to add a new |
Hi. One of the examples might be a user who is a member of a group.
|
@lyschoening I managed to make it work, I'll send a PR once I figure the tests |
@odcinek Any update on your progress? I'd like to use this in my own project |
PrincipalsMixin
seems to supportToOne
fields, butToMany
is left unimplemented . I haven't found a good way to express it inflask-principal
terms, without creating aNeed
instance for every relation member.@lyschoening How would you approach this? Happy to take a shot at implementing this.
The text was updated successfully, but these errors were encountered: