diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-11-12 15:21:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-11-12 15:21:05 +0000 |
commit | f1d7b9300fbb06495c6087f975cdbb68a894da37 (patch) | |
tree | 199e79931f14cdc581e7e04b1c8a9c04e4fa5004 /src/resource_inventory/models.py | |
parent | 28bbaf66df33c82abdf0f24755a570813edd1bbf (diff) | |
parent | 1c68f210bdbe231ef2d993e9bb85e543af3470f8 (diff) |
Merge "Allow public marked grb and configs to be shown"
Diffstat (limited to 'src/resource_inventory/models.py')
-rw-r--r-- | src/resource_inventory/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py index b9f2c44..031ccce 100644 --- a/src/resource_inventory/models.py +++ b/src/resource_inventory/models.py @@ -113,6 +113,8 @@ class GenericResourceBundle(models.Model): owner = models.ForeignKey(User, null=True, on_delete=models.SET_NULL) lab = models.ForeignKey(Lab, null=True, on_delete=models.SET_NULL) description = models.CharField(max_length=1000, default="") + public = models.BooleanField(default=False) + hidden = models.BooleanField(default=False) def getHosts(self): return_hosts = [] @@ -241,6 +243,8 @@ class ConfigBundle(models.Model): name = models.CharField(max_length=200, unique=True) description = models.CharField(max_length=1000, default="") bundle = models.ForeignKey(GenericResourceBundle, null=True, on_delete=models.CASCADE) + public = models.BooleanField(default=False) + hidden = models.BooleanField(default=False) def __str__(self): return self.name |