mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
14438 fix migration
This commit is contained in:
parent
8c2fbceb76
commit
4fdce65e35
@ -36,6 +36,10 @@ def update_scripts(apps, schema_editor):
|
||||
obj.is_valid = False
|
||||
obj.save()
|
||||
|
||||
rule.action_object_type = ct
|
||||
rule.action_object_id = obj.id
|
||||
rule.save()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
|
@ -1074,13 +1074,13 @@ class ScriptView(BaseScriptView):
|
||||
|
||||
form = None
|
||||
if self.script_class:
|
||||
form = script_class.as_form(initial=normalize_querydict(request.GET))
|
||||
form = self.script_class.as_form(initial=normalize_querydict(request.GET))
|
||||
|
||||
return render(request, 'extras/script.html', {
|
||||
'job_count': self.jobs.count(),
|
||||
'module': script.module,
|
||||
'script': script,
|
||||
'script_class': script_class,
|
||||
'module': self.script.module,
|
||||
'script': self.script,
|
||||
'script_class': self.script_class,
|
||||
'form': form,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user