mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38:38 -06:00
Update views.py
Typo... compontent => component
This commit is contained in:
parent
a35d927235
commit
0f6584355b
@ -353,7 +353,7 @@ class ComponentTemplateCreateView(View):
|
|||||||
|
|
||||||
if not form.errors:
|
if not form.errors:
|
||||||
self.model.objects.bulk_create(component_templates)
|
self.model.objects.bulk_create(component_templates)
|
||||||
messages.success(request, "Added {} compontent(s) to {}".format(len(component_templates), devicetype))
|
messages.success(request, "Added {} component(s) to {}".format(len(component_templates), devicetype))
|
||||||
if '_addanother' in request.POST:
|
if '_addanother' in request.POST:
|
||||||
return redirect(request.path)
|
return redirect(request.path)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user