Code Review
/
laas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1ca2053
)
Allow creating Networks in Admin
88/70888/2
author
Sean Smith
<ssmith@iol.unh.edu>
Wed, 26 Aug 2020 20:49:36 +0000
(16:49 -0400)
committer
Sean Smith
<ssmith@iol.unh.edu>
Fri, 28 Aug 2020 17:52:08 +0000
(13:52 -0400)
Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
Change-Id: Ie47d7170c12d73fc42a2c4756449154c98a14a8e
src/resource_inventory/models.py
patch
|
blob
|
history
diff --git
a/src/resource_inventory/models.py
b/src/resource_inventory/models.py
index
fb3c33e
..
01da8bb
100644
(file)
--- 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):
"""