mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
12510 review changes
This commit is contained in:
parent
7e07136178
commit
c03cd6b2b9
@ -51,9 +51,13 @@ def is_script(obj):
|
||||
"""
|
||||
Returns True if the object is a Script.
|
||||
"""
|
||||
"""
|
||||
Returns True if the given object is a Report.
|
||||
"""
|
||||
from .reports import Report
|
||||
from .scripts import Script
|
||||
try:
|
||||
return issubclass(obj, Script) and obj != Script
|
||||
return ((issubclass(obj, Report) and obj != Report) or (issubclass(obj, Script) and obj != Script))
|
||||
except TypeError:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user