diff --git a/netbox_custom_objects/navigation.py b/netbox_custom_objects/navigation.py index 712914f..fdec007 100644 --- a/netbox_custom_objects/navigation.py +++ b/netbox_custom_objects/navigation.py @@ -39,10 +39,21 @@ def __iter__(self): "custom_object_type": custom_object_type.slug }, ) + bulk_import_button = PluginMenuButton( + None, + _('Import'), + 'mdi mdi-upload' + ) + bulk_import_button.url = reverse_lazy( + f"plugins:{APP_LABEL}:customobject_bulk_import", + kwargs={ + "custom_object_type": custom_object_type.slug + }, + ) menu_item = PluginMenuItem( link=None, link_text=_(title(model._meta.verbose_name_plural)), - buttons=(add_button,), + buttons=(add_button, bulk_import_button), auth_required=True, ) menu_item.url = reverse_lazy(