Prince Kumar 2 лет назад
Родитель
Сommit
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()
         )