1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Move configure_table() logic to NetBoxTable.configure()

This commit is contained in:
jeremystretch
2022-02-09 14:10:54 -05:00
parent 10e6ae2094
commit 23a80770e1
13 changed files with 65 additions and 66 deletions

View File

@@ -6,7 +6,6 @@ from django.urls import reverse
from dcim.models import Site
from dcim.tables import SiteTable
from users.preferences import UserPreference
from netbox.tables import configure_table
from utilities.testing import TestCase
@@ -60,5 +59,5 @@ class UserPreferencesTest(TestCase):
table = SiteTable(Site.objects.all())
request = RequestFactory().get(url)
request.user = self.user
configure_table(table, request)
table.configure(request)
self.assertEqual(table.order_by, ('-status',))