From fbe0c42bb85670b98ed412b6b83af01d76681453 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Wed, 26 Aug 2020 16:49:36 -0400 Subject: Allow creating Networks in Admin Signed-off-by: Sean Smith Change-Id: Ie47d7170c12d73fc42a2c4756449154c98a14a8e --- src/resource_inventory/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): """ -- cgit 1.2.3-korg