vittoriozamboni / django-groups-manager

Manage django groups collection based on django-mptt.
MIT License
96 stars 23 forks source link

Fix documentation #64

Closed raulsperoni closed 2 years ago

raulsperoni commented 2 years ago

Hi, I think I've found an error in the Documentation. My goal was to check if a custom member CustomMember was in the CustomGroup members collection. Reading the code I found that GroupsManagerMeta worked while GroupsModelMeta didn't.

raulsperoni commented 2 years ago

Actually this might not be right. Membership check works for the group but not for the ancestors.

vittoriozamboni commented 2 years ago

Hi @raulsperoni , can you open an issue and attach a small snippet with the example of what you are trying to achieve? It might be something I didn't cover in the tests, or a different scenario which needs a code change.

Thank you!