@@ -280,7 +280,7 @@ class RegionDeleteView(generic.ObjectDeleteView):
280
280
queryset = Region .objects .all ()
281
281
282
282
283
- @register_model_view (Region , 'bulk_import' , detail = False )
283
+ @register_model_view (Region , 'bulk_import' , path = 'import' , detail = False )
284
284
class RegionBulkImportView (generic .BulkImportView ):
285
285
queryset = Region .objects .all ()
286
286
model_form = forms .RegionImportForm
@@ -411,7 +411,7 @@ class SiteGroupDeleteView(generic.ObjectDeleteView):
411
411
queryset = SiteGroup .objects .all ()
412
412
413
413
414
- @register_model_view (SiteGroup , 'bulk_import' , detail = False )
414
+ @register_model_view (SiteGroup , 'bulk_import' , path = 'import' , detail = False )
415
415
class SiteGroupBulkImportView (generic .BulkImportView ):
416
416
queryset = SiteGroup .objects .all ()
417
417
model_form = forms .SiteGroupImportForm
@@ -507,7 +507,7 @@ class SiteDeleteView(generic.ObjectDeleteView):
507
507
queryset = Site .objects .all ()
508
508
509
509
510
- @register_model_view (Site , 'bulk_import' , detail = False )
510
+ @register_model_view (Site , 'bulk_import' , path = 'import' , detail = False )
511
511
class SiteBulkImportView (generic .BulkImportView ):
512
512
queryset = Site .objects .all ()
513
513
model_form = forms .SiteImportForm
@@ -610,7 +610,7 @@ class LocationDeleteView(generic.ObjectDeleteView):
610
610
queryset = Location .objects .all ()
611
611
612
612
613
- @register_model_view (Location , 'bulk_import' , detail = False )
613
+ @register_model_view (Location , 'bulk_import' , path = 'import' , detail = False )
614
614
class LocationBulkImportView (generic .BulkImportView ):
615
615
queryset = Location .objects .all ()
616
616
model_form = forms .LocationImportForm
@@ -684,7 +684,7 @@ class RackRoleDeleteView(generic.ObjectDeleteView):
684
684
queryset = RackRole .objects .all ()
685
685
686
686
687
- @register_model_view (RackRole , 'bulk_import' , detail = False )
687
+ @register_model_view (RackRole , 'bulk_import' , path = 'import' , detail = False )
688
688
class RackRoleBulkImportView (generic .BulkImportView ):
689
689
queryset = RackRole .objects .all ()
690
690
model_form = forms .RackRoleImportForm
@@ -745,7 +745,7 @@ class RackTypeDeleteView(generic.ObjectDeleteView):
745
745
queryset = RackType .objects .all ()
746
746
747
747
748
- @register_model_view (RackType , 'bulk_import' , detail = False )
748
+ @register_model_view (RackType , 'bulk_import' , path = 'import' , detail = False )
749
749
class RackTypeBulkImportView (generic .BulkImportView ):
750
750
queryset = RackType .objects .all ()
751
751
model_form = forms .RackTypeImportForm
@@ -924,7 +924,7 @@ class RackDeleteView(generic.ObjectDeleteView):
924
924
queryset = Rack .objects .all ()
925
925
926
926
927
- @register_model_view (Rack , 'bulk_import' , detail = False )
927
+ @register_model_view (Rack , 'bulk_import' , path = 'import' , detail = False )
928
928
class RackBulkImportView (generic .BulkImportView ):
929
929
queryset = Rack .objects .all ()
930
930
model_form = forms .RackImportForm
@@ -986,7 +986,7 @@ class RackReservationDeleteView(generic.ObjectDeleteView):
986
986
queryset = RackReservation .objects .all ()
987
987
988
988
989
- @register_model_view (RackReservation , 'bulk_import' , detail = False )
989
+ @register_model_view (RackReservation , 'bulk_import' , path = 'import' , detail = False )
990
990
class RackReservationImportView (generic .BulkImportView ):
991
991
queryset = RackReservation .objects .all ()
992
992
model_form = forms .RackReservationImportForm
@@ -1057,7 +1057,7 @@ class ManufacturerDeleteView(generic.ObjectDeleteView):
1057
1057
queryset = Manufacturer .objects .all ()
1058
1058
1059
1059
1060
- @register_model_view (Manufacturer , 'bulk_import' , detail = False )
1060
+ @register_model_view (Manufacturer , 'bulk_import' , path = 'import' , detail = False )
1061
1061
class ManufacturerBulkImportView (generic .BulkImportView ):
1062
1062
queryset = Manufacturer .objects .all ()
1063
1063
model_form = forms .ManufacturerImportForm
@@ -1283,7 +1283,7 @@ class DeviceTypeInventoryItemsView(DeviceTypeComponentsView):
1283
1283
)
1284
1284
1285
1285
1286
- @register_model_view (DeviceType , 'bulk_import' , detail = False )
1286
+ @register_model_view (DeviceType , 'bulk_import' , path = 'import' , detail = False )
1287
1287
class DeviceTypeImportView (generic .BulkImportView ):
1288
1288
additional_permissions = [
1289
1289
'dcim.add_devicetype' ,
@@ -1497,7 +1497,7 @@ class ModuleTypeModuleBaysView(ModuleTypeComponentsView):
1497
1497
)
1498
1498
1499
1499
1500
- @register_model_view (ModuleType , 'bulk_import' , detail = False )
1500
+ @register_model_view (ModuleType , 'bulk_import' , path = 'import' , detail = False )
1501
1501
class ModuleTypeImportView (generic .BulkImportView ):
1502
1502
additional_permissions = [
1503
1503
'dcim.add_moduletype' ,
@@ -1995,7 +1995,7 @@ class DeviceRoleDeleteView(generic.ObjectDeleteView):
1995
1995
queryset = DeviceRole .objects .all ()
1996
1996
1997
1997
1998
- @register_model_view (DeviceRole , 'bulk_import' , detail = False )
1998
+ @register_model_view (DeviceRole , 'bulk_import' , path = 'import' , detail = False )
1999
1999
class DeviceRoleBulkImportView (generic .BulkImportView ):
2000
2000
queryset = DeviceRole .objects .all ()
2001
2001
model_form = forms .DeviceRoleImportForm
@@ -2059,7 +2059,7 @@ class PlatformDeleteView(generic.ObjectDeleteView):
2059
2059
queryset = Platform .objects .all ()
2060
2060
2061
2061
2062
- @register_model_view (Platform , 'bulk_import' , detail = False )
2062
+ @register_model_view (Platform , 'bulk_import' , path = 'import' , detail = False )
2063
2063
class PlatformBulkImportView (generic .BulkImportView ):
2064
2064
queryset = Platform .objects .all ()
2065
2065
model_form = forms .PlatformImportForm
@@ -2342,7 +2342,7 @@ def get_children(self, request, parent):
2342
2342
return self .child_model .objects .restrict (request .user , 'view' ).filter (cluster = parent .cluster , device = parent )
2343
2343
2344
2344
2345
- @register_model_view (Device , 'bulk_import' , detail = False )
2345
+ @register_model_view (Device , 'bulk_import' , path = 'import' , detail = False )
2346
2346
class DeviceBulkImportView (generic .BulkImportView ):
2347
2347
queryset = Device .objects .all ()
2348
2348
model_form = forms .DeviceImportForm
@@ -2420,7 +2420,7 @@ class ModuleDeleteView(generic.ObjectDeleteView):
2420
2420
queryset = Module .objects .all ()
2421
2421
2422
2422
2423
- @register_model_view (Module , 'bulk_import' , detail = False )
2423
+ @register_model_view (Module , 'bulk_import' , path = 'import' , detail = False )
2424
2424
class ModuleBulkImportView (generic .BulkImportView ):
2425
2425
queryset = Module .objects .all ()
2426
2426
model_form = forms .ModuleImportForm
@@ -2481,7 +2481,7 @@ class ConsolePortDeleteView(generic.ObjectDeleteView):
2481
2481
queryset = ConsolePort .objects .all ()
2482
2482
2483
2483
2484
- @register_model_view (ConsolePort , 'bulk_import' , detail = False )
2484
+ @register_model_view (ConsolePort , 'bulk_import' , path = 'import' , detail = False )
2485
2485
class ConsolePortBulkImportView (generic .BulkImportView ):
2486
2486
queryset = ConsolePort .objects .all ()
2487
2487
model_form = forms .ConsolePortImportForm
@@ -2556,7 +2556,7 @@ class ConsoleServerPortDeleteView(generic.ObjectDeleteView):
2556
2556
queryset = ConsoleServerPort .objects .all ()
2557
2557
2558
2558
2559
- @register_model_view (ConsoleServerPort , 'bulk_import' , detail = False )
2559
+ @register_model_view (ConsoleServerPort , 'bulk_import' , path = 'import' , detail = False )
2560
2560
class ConsoleServerPortBulkImportView (generic .BulkImportView ):
2561
2561
queryset = ConsoleServerPort .objects .all ()
2562
2562
model_form = forms .ConsoleServerPortImportForm
@@ -2631,7 +2631,7 @@ class PowerPortDeleteView(generic.ObjectDeleteView):
2631
2631
queryset = PowerPort .objects .all ()
2632
2632
2633
2633
2634
- @register_model_view (PowerPort , 'bulk_import' , detail = False )
2634
+ @register_model_view (PowerPort , 'bulk_import' , path = 'import' , detail = False )
2635
2635
class PowerPortBulkImportView (generic .BulkImportView ):
2636
2636
queryset = PowerPort .objects .all ()
2637
2637
model_form = forms .PowerPortImportForm
@@ -2706,7 +2706,7 @@ class PowerOutletDeleteView(generic.ObjectDeleteView):
2706
2706
queryset = PowerOutlet .objects .all ()
2707
2707
2708
2708
2709
- @register_model_view (PowerOutlet , 'bulk_import' , detail = False )
2709
+ @register_model_view (PowerOutlet , 'bulk_import' , path = 'import' , detail = False )
2710
2710
class PowerOutletBulkImportView (generic .BulkImportView ):
2711
2711
queryset = PowerOutlet .objects .all ()
2712
2712
model_form = forms .PowerOutletImportForm
@@ -2838,7 +2838,7 @@ class InterfaceDeleteView(generic.ObjectDeleteView):
2838
2838
queryset = Interface .objects .all ()
2839
2839
2840
2840
2841
- @register_model_view (Interface , 'bulk_import' , detail = False )
2841
+ @register_model_view (Interface , 'bulk_import' , path = 'import' , detail = False )
2842
2842
class InterfaceBulkImportView (generic .BulkImportView ):
2843
2843
queryset = Interface .objects .all ()
2844
2844
model_form = forms .InterfaceImportForm
@@ -2924,7 +2924,7 @@ class FrontPortDeleteView(generic.ObjectDeleteView):
2924
2924
queryset = FrontPort .objects .all ()
2925
2925
2926
2926
2927
- @register_model_view (FrontPort , 'bulk_import' , detail = False )
2927
+ @register_model_view (FrontPort , 'bulk_import' , path = 'import' , detail = False )
2928
2928
class FrontPortBulkImportView (generic .BulkImportView ):
2929
2929
queryset = FrontPort .objects .all ()
2930
2930
model_form = forms .FrontPortImportForm
@@ -2999,7 +2999,7 @@ class RearPortDeleteView(generic.ObjectDeleteView):
2999
2999
queryset = RearPort .objects .all ()
3000
3000
3001
3001
3002
- @register_model_view (RearPort , 'bulk_import' , detail = False )
3002
+ @register_model_view (RearPort , 'bulk_import' , path = 'import' , detail = False )
3003
3003
class RearPortBulkImportView (generic .BulkImportView ):
3004
3004
queryset = RearPort .objects .all ()
3005
3005
model_form = forms .RearPortImportForm
@@ -3074,7 +3074,7 @@ class ModuleBayDeleteView(generic.ObjectDeleteView):
3074
3074
queryset = ModuleBay .objects .all ()
3075
3075
3076
3076
3077
- @register_model_view (ModuleBay , 'bulk_import' , detail = False )
3077
+ @register_model_view (ModuleBay , 'bulk_import' , path = 'import' , detail = False )
3078
3078
class ModuleBayBulkImportView (generic .BulkImportView ):
3079
3079
queryset = ModuleBay .objects .all ()
3080
3080
model_form = forms .ModuleBayImportForm
@@ -3221,7 +3221,7 @@ def post(self, request, pk):
3221
3221
})
3222
3222
3223
3223
3224
- @register_model_view (DeviceBay , 'bulk_import' , detail = False )
3224
+ @register_model_view (DeviceBay , 'bulk_import' , path = 'import' , detail = False )
3225
3225
class DeviceBayBulkImportView (generic .BulkImportView ):
3226
3226
queryset = DeviceBay .objects .all ()
3227
3227
model_form = forms .DeviceBayImportForm
@@ -3287,7 +3287,7 @@ class InventoryItemDeleteView(generic.ObjectDeleteView):
3287
3287
queryset = InventoryItem .objects .all ()
3288
3288
3289
3289
3290
- @register_model_view (InventoryItem , 'bulk_import' , detail = False )
3290
+ @register_model_view (InventoryItem , 'bulk_import' , path = 'import' , detail = False )
3291
3291
class InventoryItemBulkImportView (generic .BulkImportView ):
3292
3292
queryset = InventoryItem .objects .all ()
3293
3293
model_form = forms .InventoryItemImportForm
@@ -3368,7 +3368,7 @@ class InventoryItemRoleDeleteView(generic.ObjectDeleteView):
3368
3368
queryset = InventoryItemRole .objects .all ()
3369
3369
3370
3370
3371
- @register_model_view (InventoryItemRole , 'bulk_import' , detail = False )
3371
+ @register_model_view (InventoryItemRole , 'bulk_import' , path = 'import' , detail = False )
3372
3372
class InventoryItemRoleBulkImportView (generic .BulkImportView ):
3373
3373
queryset = InventoryItemRole .objects .all ()
3374
3374
model_form = forms .InventoryItemRoleImportForm
@@ -3564,7 +3564,7 @@ class CableDeleteView(generic.ObjectDeleteView):
3564
3564
queryset = Cable .objects .all ()
3565
3565
3566
3566
3567
- @register_model_view (Cable , 'bulk_import' , detail = False )
3567
+ @register_model_view (Cable , 'bulk_import' , path = 'import' , detail = False )
3568
3568
class CableBulkImportView (generic .BulkImportView ):
3569
3569
queryset = Cable .objects .all ()
3570
3570
model_form = forms .CableImportForm
@@ -3865,7 +3865,7 @@ def post(self, request, pk):
3865
3865
})
3866
3866
3867
3867
3868
- @register_model_view (VirtualChassis , 'bulk_import' , detail = False )
3868
+ @register_model_view (VirtualChassis , 'bulk_import' , path = 'import' , detail = False )
3869
3869
class VirtualChassisBulkImportView (generic .BulkImportView ):
3870
3870
queryset = VirtualChassis .objects .all ()
3871
3871
model_form = forms .VirtualChassisImportForm
@@ -3922,7 +3922,7 @@ class PowerPanelDeleteView(generic.ObjectDeleteView):
3922
3922
queryset = PowerPanel .objects .all ()
3923
3923
3924
3924
3925
- @register_model_view (PowerPanel , 'bulk_import' , detail = False )
3925
+ @register_model_view (PowerPanel , 'bulk_import' , path = 'import' , detail = False )
3926
3926
class PowerPanelBulkImportView (generic .BulkImportView ):
3927
3927
queryset = PowerPanel .objects .all ()
3928
3928
model_form = forms .PowerPanelImportForm
@@ -3979,7 +3979,7 @@ class PowerFeedDeleteView(generic.ObjectDeleteView):
3979
3979
queryset = PowerFeed .objects .all ()
3980
3980
3981
3981
3982
- @register_model_view (PowerFeed , 'bulk_import' , detail = False )
3982
+ @register_model_view (PowerFeed , 'bulk_import' , path = 'import' , detail = False )
3983
3983
class PowerFeedBulkImportView (generic .BulkImportView ):
3984
3984
queryset = PowerFeed .objects .all ()
3985
3985
model_form = forms .PowerFeedImportForm
@@ -4051,7 +4051,7 @@ class VirtualDeviceContextDeleteView(generic.ObjectDeleteView):
4051
4051
queryset = VirtualDeviceContext .objects .all ()
4052
4052
4053
4053
4054
- @register_model_view (VirtualDeviceContext , 'bulk_import' , detail = False )
4054
+ @register_model_view (VirtualDeviceContext , 'bulk_import' , path = 'import' , detail = False )
4055
4055
class VirtualDeviceContextBulkImportView (generic .BulkImportView ):
4056
4056
queryset = VirtualDeviceContext .objects .all ()
4057
4057
model_form = forms .VirtualDeviceContextImportForm
@@ -4101,7 +4101,7 @@ class MACAddressDeleteView(generic.ObjectDeleteView):
4101
4101
queryset = MACAddress .objects .all ()
4102
4102
4103
4103
4104
- @register_model_view (MACAddress , 'bulk_import' , detail = False )
4104
+ @register_model_view (MACAddress , 'bulk_import' , path = 'import' , detail = False )
4105
4105
class MACAddressBulkImportView (generic .BulkImportView ):
4106
4106
queryset = MACAddress .objects .all ()
4107
4107
model_form = forms .MACAddressImportForm
0 commit comments