Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Nested Groups: Groups in Groups

In Django (when using django.contrib.auth) may I add a Group to another Group? Ie a a Group be a member of another Group?

If so how do I do this? I add Users to a Group using the user_set, but from what I gather the default Group model does not have a many to many to it self.

Docs: https://docs.djangoproject.com/en/1.7/topics/auth/default/#groups

like image 386
Alex Rothberg Avatar asked Oct 02 '14 19:10

Alex Rothberg


1 Answers

The native Django doesn't provide this opportunity.

like image 100
Philipp Gensel Avatar answered Nov 15 '22 22:11

Philipp Gensel