RackType has no airflow attribute
This commit is contained in:
parent
281cb4f586
commit
9d6522c11e
|
|
@ -69,7 +69,6 @@ class RackTypePanel(panels.ObjectAttributesPanel):
|
|||
manufacturer = attrs.ObjectAttr('manufacturer', linkify=True)
|
||||
model = attrs.TextAttr('model')
|
||||
description = attrs.TextAttr('description')
|
||||
airflow = attrs.ChoiceAttr('airflow')
|
||||
|
||||
|
||||
class DevicePanel(panels.ObjectAttributesPanel):
|
||||
|
|
|
|||
|
|
@ -232,5 +232,8 @@ def resolve_attr_path(obj, path):
|
|||
for part in path.split('.'):
|
||||
if cur is None:
|
||||
return None
|
||||
cur = getattr(cur, part) if hasattr(cur, part) else cur.get(part)
|
||||
try:
|
||||
cur = getattr(cur, part) if hasattr(cur, part) else cur.get(part)
|
||||
except AttributeError:
|
||||
cur = None
|
||||
return cur
|
||||
|
|
|
|||
Loading…
Reference in New Issue