From c03cd6b2b9315c330f19ac8078d2bdf40d256114 Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 1 Feb 2024 15:28:01 -0800 Subject: [PATCH] 12510 review changes --- netbox/extras/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netbox/extras/utils.py b/netbox/extras/utils.py index c6b2de188..2a99405d0 100644 --- a/netbox/extras/utils.py +++ b/netbox/extras/utils.py @@ -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