From 12beac4f1adc5be8dba927f9823e0bd904dcf60f Mon Sep 17 00:00:00 2001 From: Prince Kumar Date: Wed, 20 Dec 2023 22:03:00 +0530 Subject: [PATCH] fix the result of script jobs #14549 --- netbox/extras/management/commands/runscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/extras/management/commands/runscript.py b/netbox/extras/management/commands/runscript.py index d9a9f41ae..c9cedd3a5 100644 --- a/netbox/extras/management/commands/runscript.py +++ b/netbox/extras/management/commands/runscript.py @@ -114,7 +114,7 @@ class Command(BaseCommand): # Create the job job = Job.objects.create( object=module, - name=script.name, + name=script.class_name, user=User.objects.filter(is_superuser=True).order_by('pk')[0], job_id=uuid.uuid4() )