pinax-teams
pinax-teams copied to clipboard
WIP: add the ability to nest teams
Adds the ability to nest Teams.
Remaining:
- [ ] Standardize convenience methods for
ancestors
anddescendants
. - [ ] Document new templates and add to the appropriate starter project.
For further discussion:
- [ ] Should nesting be supported / the
parent
relation applied toSimpleTeam
as well asTeam
? (see #25) - [ ] Is there a better way to handle slug creation on
child
teams? - [ ] Are there more performant ways to resolve
get_root_team
andancestors
using the ORM? - [ ] Do we allow for "implicit" memberships of teams beneath a parent (see
Team.for_user
). - [ ] Related to above, do we enforce a single membership for a user across a Team and its descendants/ancestors?
Comments/Gripes
- [ ] Slug building off of parent pks (versus parent slugs)
- Why not use the slugs (database limitations)
- [ ] Prevent a team from being an ancestor
- [ ] Team methods should reference
self
cc: @jtauber and @gregnewman
cf #2