diff options
author | 2020-08-28 18:05:22 +0000 | |
---|---|---|
committer | 2020-08-28 18:05:22 +0000 | |
commit | 836ba6a22ece7590c203c837669b73259f02540a (patch) | |
tree | 9875bc6136a6c402e19f47869d66fda0b9eb5094 /src/resource_inventory/models.py | |
parent | 749eab72b7e47a66db65712f0d8f4ea50b2cf584 (diff) | |
parent | fbe0c42bb85670b98ed412b6b83af01d76681453 (diff) |
Merge "Allow creating Networks in Admin"
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): """ |