diff options
author | Sean Smith <ssmith@iol.unh.edu> | 2020-08-26 16:49:36 -0400 |
---|---|---|
committer | Sean Smith <ssmith@iol.unh.edu> | 2020-08-28 13:52:08 -0400 |
commit | fbe0c42bb85670b98ed412b6b83af01d76681453 (patch) | |
tree | 924040febb34a64bf6c427e5afd8d8f8ecbfdcaf /src/resource_inventory/models.py | |
parent | 1ca205371c3306a23a817d9ea617c1a0596f7912 (diff) |
Allow creating Networks in Admin
Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
Change-Id: Ie47d7170c12d73fc42a2c4756449154c98a14a8e
Diffstat (limited to 'src/resource_inventory/models.py')
-rw-r--r-- | src/resource_inventory/models.py | 2 |
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): """ |