mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Ability to list teams and get individual team records.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user