Implementation and testing of the organizations projects subresource.

This commit is contained in:
Michael DeHaan
2013-03-21 17:38:53 -04:00
parent 5c79112c82
commit 2dbb77833e
4 changed files with 114 additions and 13 deletions

View File

@@ -175,6 +175,10 @@ class Project(CommonModel):
scm_type = models.CharField(max_length=64)
default_playbook = models.CharField(max_length=1024)
def get_absolute_url(self):
import lib.urls
return reverse(lib.urls.views_ProjectsDetail, args=(self.pk,))
class Permission(CommonModel):
'''
A permission allows a user, project, or team to be able to use an inventory source.