mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-13 22:03:32 +01:00
Remove job name for scripts
Because scripts are already linked through the Job Instance field, the name is displayed twice. Removing this reduces redundancy and opens up the possibility of simplifying the BackgroundJob framework in future commits.
This commit is contained in:
@@ -276,7 +276,6 @@ class ScriptViewSet(ModelViewSet):
|
||||
ScriptJob = import_string("extras.jobs.ScriptJob")
|
||||
ScriptJob.enqueue(
|
||||
instance=script,
|
||||
name=script.python_class.class_name,
|
||||
user=request.user,
|
||||
data=input_serializer.data['data'],
|
||||
request=copy_safe_request(request),
|
||||
|
||||
@@ -1169,7 +1169,6 @@ class ScriptView(BaseScriptView):
|
||||
ScriptJob = import_string("extras.jobs.ScriptJob")
|
||||
job = ScriptJob.enqueue(
|
||||
instance=script,
|
||||
name=script_class.class_name,
|
||||
user=request.user,
|
||||
schedule_at=form.cleaned_data.pop('_schedule_at'),
|
||||
interval=form.cleaned_data.pop('_interval'),
|
||||
|
||||
Reference in New Issue
Block a user