mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #6954: Remember users' table ordering preferences
This commit is contained in:
@@ -6,7 +6,7 @@ from circuits.models import Circuit
|
||||
from dcim.models import Site, Rack, Device, RackReservation
|
||||
from ipam.models import Aggregate, IPAddress, Prefix, VLAN, VRF
|
||||
from netbox.views import generic
|
||||
from utilities.tables import paginate_table
|
||||
from utilities.tables import configure_table
|
||||
from utilities.utils import count_related
|
||||
from virtualization.models import VirtualMachine, Cluster
|
||||
from . import filtersets, forms, tables
|
||||
@@ -38,7 +38,7 @@ class TenantGroupView(generic.ObjectView):
|
||||
group=instance
|
||||
)
|
||||
tenants_table = tables.TenantTable(tenants, exclude=('group',))
|
||||
paginate_table(tenants_table, request)
|
||||
configure_table(tenants_table, request)
|
||||
|
||||
return {
|
||||
'tenants_table': tenants_table,
|
||||
@@ -184,7 +184,7 @@ class ContactGroupView(generic.ObjectView):
|
||||
group=instance
|
||||
)
|
||||
contacts_table = tables.ContactTable(contacts, exclude=('group',))
|
||||
paginate_table(contacts_table, request)
|
||||
configure_table(contacts_table, request)
|
||||
|
||||
return {
|
||||
'child_groups_table': child_groups_table,
|
||||
@@ -251,7 +251,7 @@ class ContactRoleView(generic.ObjectView):
|
||||
)
|
||||
contacts_table = tables.ContactAssignmentTable(contact_assignments)
|
||||
contacts_table.columns.hide('role')
|
||||
paginate_table(contacts_table, request)
|
||||
configure_table(contacts_table, request)
|
||||
|
||||
return {
|
||||
'contacts_table': contacts_table,
|
||||
@@ -308,7 +308,7 @@ class ContactView(generic.ObjectView):
|
||||
)
|
||||
assignments_table = tables.ContactAssignmentTable(contact_assignments)
|
||||
assignments_table.columns.hide('contact')
|
||||
paginate_table(assignments_table, request)
|
||||
configure_table(assignments_table, request)
|
||||
|
||||
return {
|
||||
'assignments_table': assignments_table,
|
||||
|
Reference in New Issue
Block a user