git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd348e
)
Deployment filtering for SiteDeployment objects
author
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 22 Sep 2014 18:54:56 +0000
(14:54 -0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 22 Sep 2014 18:54:56 +0000
(14:54 -0400)
planetstack/core/models/site.py
patch
|
blob
|
history
diff --git
a/planetstack/core/models/site.py
b/planetstack/core/models/site.py
index
1b9963f
..
04d1073
100644
(file)
--- a/
planetstack/core/models/site.py
+++ b/
planetstack/core/models/site.py
@@
-225,6
+225,9
@@
class DeploymentPrivilege(PlCoreBase):
return qs
class SiteDeployments(PlCoreBase):
+ objects = DeploymentLinkManager()
+ deleted_objects = DeploymentLinkDeletionManager()
+
site = models.ForeignKey(Site)
deployment = models.ForeignKey(Deployment)
tenant_id = models.CharField(null=True, blank=True, max_length=200, help_text="Keystone tenant id")