We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 643856f commit 94c3b50Copy full SHA for 94c3b50
netbox_custom_objects/navigation.py
@@ -39,10 +39,21 @@ def __iter__(self):
39
"custom_object_type": custom_object_type.slug
40
},
41
)
42
+ bulk_import_button = PluginMenuButton(
43
+ None,
44
+ _('Import'),
45
+ 'mdi mdi-upload'
46
+ )
47
+ bulk_import_button.url = reverse_lazy(
48
+ f"plugins:{APP_LABEL}:customobject_bulk_import",
49
+ kwargs={
50
+ "custom_object_type": custom_object_type.slug
51
+ },
52
53
menu_item = PluginMenuItem(
54
link=None,
55
link_text=_(title(model._meta.verbose_name_plural)),
- buttons=(add_button,),
56
+ buttons=(add_button, bulk_import_button),
57
auth_required=True,
58
59
menu_item.url = reverse_lazy(
0 commit comments