mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 13:08:16 -06:00
fix ordering and remove debug statement
This commit is contained in:
parent
aa18281360
commit
f67b0af1a8
@ -28,8 +28,8 @@ __all__ = (
|
|||||||
'ConsoleServerPortTemplateForm',
|
'ConsoleServerPortTemplateForm',
|
||||||
'DeviceBayForm',
|
'DeviceBayForm',
|
||||||
'DeviceBayTemplateForm',
|
'DeviceBayTemplateForm',
|
||||||
'DeviceForm',
|
|
||||||
'DeviceAssignForm',
|
'DeviceAssignForm',
|
||||||
|
'DeviceForm',
|
||||||
'DeviceRoleForm',
|
'DeviceRoleForm',
|
||||||
'DeviceTypeForm',
|
'DeviceTypeForm',
|
||||||
'DeviceVCMembershipForm',
|
'DeviceVCMembershipForm',
|
||||||
|
@ -1490,9 +1490,7 @@ class DeviceAssignView(generic.ObjectEditView):
|
|||||||
table = None
|
table = None
|
||||||
|
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
|
|
||||||
devices = self.queryset.prefetch_related('rack')
|
devices = self.queryset.prefetch_related('rack')
|
||||||
print(devices[0].rack.pk)
|
|
||||||
# Limit to 100 results
|
# Limit to 100 results
|
||||||
devices = filtersets.DeviceFilterSet(request.POST, devices).qs[:100]
|
devices = filtersets.DeviceFilterSet(request.POST, devices).qs[:100]
|
||||||
table = tables.DeviceAssignTable(devices)
|
table = tables.DeviceAssignTable(devices)
|
||||||
|
Loading…
Reference in New Issue
Block a user