Bulk import URL path is incorrect #11088

Closed
opened 2025-12-29 21:40:08 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 25, 2025).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.2.8

Python Version

3.10

Steps to Reproduce

  1. Navigate to the bulk import view for any object type (e.g. sites).

Expected Behavior

The URL should end in /import/ (e.g. /dcim/sites/import/).

Observed Behavior

The URL ends with /bulk_import/ (the view name). I believe this is an inadvertent change from #17752, which was implemented in v4.2.0. Each of the bulk import views should specify a path similar to the bulk edit & bulk delete views:

@register_model_view(Site, 'bulk_import', path='import', detail=False)
class SiteBulkImportView(generic.BulkImportView):
    ...
Originally created by @jeremystretch on GitHub (Apr 25, 2025). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.2.8 ### Python Version 3.10 ### Steps to Reproduce 1. Navigate to the bulk import view for any object type (e.g. sites). ### Expected Behavior The URL should end in `/import/` (e.g. `/dcim/sites/import/`). ### Observed Behavior The URL ends with `/bulk_import/` (the view name). I believe this is an inadvertent change from #17752, which was implemented in v4.2.0. Each of the bulk import views should specify a `path` similar to the bulk edit & bulk delete views: ```python @register_model_view(Site, 'bulk_import', path='import', detail=False) class SiteBulkImportView(generic.BulkImportView): ... ```
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:40:08 +01:00
adam closed this issue 2025-12-29 21:40:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11088