It seems like simple non-exclusive groups would be the best option. Then you get two methods:
All users for a group All groups for a user Actually having properly nested groups seems useful in well structured organizations where groups can have membership be other groups or users. In that case, maybe a recursive relationship handles it? http://docs.djangoproject.com/en/dev/ref/models/fields/#recursive-relationships On Tue, Oct 13, 2009 at 11:01 AM, bobhaugen <[email protected]> wrote: > > As you might have read in this thread: > http://groups.google.com/group/pinax-users/browse_thread/thread/cfc39c6b472236b6 > I have been experimenting with the current Pinax groups > implementation, to see if I can get nested groups to work. > > (For example, Company has Projects that have Tasks.) > > I could not get it to work using the implementation as written, so I > tried to hack it so it would work, and got something going that at > least sorta works. > > I pasted some of the code here: > http://code.pinaxproject.com/paste/IJD1/ > > Should give you some idea where I went, but if anybody wants to see > more, or the whole project in context, I could post it on git hub or > something. > > I am stopping here, to think about it and get some feedback. > > My current questions include: > > 1. Is this (nested groups) a good idea at all? > > 2. If so, is this a good way to do it? Or does somebody have a better > idea? > > 3. Was there some way I could have gotten nested groups to work > without changing the current groups code? > > 4. Is the current groups code a good basis for doing nested/composite > groups, or should I rethink from the ground up? > > > > > -- Adam Nelson http://unhub.com/varud --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Pinax Core Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pinax-core-dev?hl=en -~----------~----~----~----~------~----~------~--~---
