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',
|
||||
'DeviceBayForm',
|
||||
'DeviceBayTemplateForm',
|
||||
'DeviceForm',
|
||||
'DeviceAssignForm',
|
||||
'DeviceForm',
|
||||
'DeviceRoleForm',
|
||||
'DeviceTypeForm',
|
||||
'DeviceVCMembershipForm',
|
||||
|
@ -1490,9 +1490,7 @@ class DeviceAssignView(generic.ObjectEditView):
|
||||
table = None
|
||||
|
||||
if form.is_valid():
|
||||
|
||||
devices = self.queryset.prefetch_related('rack')
|
||||
print(devices[0].rack.pk)
|
||||
# Limit to 100 results
|
||||
devices = filtersets.DeviceFilterSet(request.POST, devices).qs[:100]
|
||||
table = tables.DeviceAssignTable(devices)
|
||||
|
Loading…
Reference in New Issue
Block a user