Ability to list teams and get individual team records.

This commit is contained in:
Michael DeHaan
2013-03-31 22:18:39 -04:00
parent 987abb1663
commit 941d605806
3 changed files with 37 additions and 0 deletions

View File

@@ -507,6 +507,10 @@ class Team(CommonModel):
users = models.ManyToManyField('auth.User', blank=True, related_name='teams')
organizations = models.ManyToManyField('Organization', related_name='teams')
def get_absolute_url(self):
import lib.urls
return reverse(lib.urls.views_TeamsDetail, args=(self.pk,))
class Project(CommonModel):
'''
A project represents a playbook git repo that can access a set of inventories