Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added for_user() method in Team manager to fetch all teams that a user h... #50

Merged
merged 2 commits into from May 10, 2012

Conversation

Projects
None yet
2 participants
Contributor

rtnpro commented Apr 25, 2012

This adds a for_user() method in Team Model Manager. This method returns all teams a user has access to as a member, coordinator, reviewer, project maintainer and owner.

@mpessas mpessas was assigned Apr 25, 2012

Contributor

rtnpro commented Apr 25, 2012

@mpessas

Also, for the clean up suggested in projects/models.py using Team.objects.for_user(user) is not possible because Team model cannot be imported in projects/models.py (to prevent cyclic dependency)

Contributor

mpessas commented Apr 26, 2012

You can use the get_model() function for that inside the function you need the for_user() call.?

Contributor

rtnpro commented Apr 26, 2012

OK

Contributor

rtnpro commented Apr 26, 2012

@mpessas

This is ready to be merged.

@mpessas mpessas added a commit that referenced this pull request May 10, 2012

@mpessas mpessas Merge pull request #50 from transifex/fix_reviewer_project_access
Added for_user() method in Team manager to fetch all teams that a user h...
d20b1b0

@mpessas mpessas merged commit d20b1b0 into devel May 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment