git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f29972
)
hide network columns for networks with no sliver ip addresses
author
Scott Baker
<smbaker@gmail.com>
Tue, 20 Aug 2013 22:48:07 +0000
(15:48 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Tue, 20 Aug 2013 22:48:07 +0000
(15:48 -0700)
planetstack/core/admin.py
patch
|
blob
|
history
diff --git
a/planetstack/core/admin.py
b/planetstack/core/admin.py
index
ae937d3
..
93c14ee
100644
(file)
--- a/
planetstack/core/admin.py
+++ b/
planetstack/core/admin.py
@@
-79,7
+79,7
@@
class SliverInline(PlStackTabularInline):
for sliver in obj.slivers.all():
for nbs in sliver.networksliver_set.all():
- if nbs.ip
is not None
:
+ if nbs.ip:
network_name = nbs.network.name
if network_name not in [str(x) for x in readonly_fields]:
readonly_fields.append(NetworkLookerUpper(network_name))