aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Smith <ssmith@iol.unh.edu>2020-08-26 16:49:36 -0400
committerSean Smith <ssmith@iol.unh.edu>2020-08-28 13:52:08 -0400
commitfbe0c42bb85670b98ed412b6b83af01d76681453 (patch)
tree924040febb34a64bf6c427e5afd8d8f8ecbfdcaf
parent1ca205371c3306a23a817d9ea617c1a0596f7912 (diff)
Allow creating Networks in Admin
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Ie47d7170c12d73fc42a2c4756449154c98a14a8e
-rw-r--r--src/resource_inventory/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py
index fb3c33e..01da8bb 100644
--- a/src/resource_inventory/models.py
+++ b/src/resource_inventory/models.py
@@ -420,7 +420,7 @@ class Network(models.Model):
class PhysicalNetwork(models.Model):
vlan_id = models.IntegerField()
generic_network = models.ForeignKey(Network, on_delete=models.CASCADE)
- bundle = models.ForeignKey(ResourceBundle, null=True, on_delete=models.CASCADE)
+ bundle = models.ForeignKey(ResourceBundle, null=True, blank=True, on_delete=models.CASCADE)
def get_configuration(self, state):
"""