Преглед изворни кода

fix the result of script jobs #14549

Prince Kumar пре 2 година
родитељ
комит
12beac4f1a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      netbox/extras/management/commands/runscript.py

+ 1 - 1
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()
         )