diff options
Diffstat (limited to 'tests/admin_ordering')
-rw-r--r-- | tests/admin_ordering/tests.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/admin_ordering/tests.py b/tests/admin_ordering/tests.py index 026c76fe23..f68b64ae70 100644 --- a/tests/admin_ordering/tests.py +++ b/tests/admin_ordering/tests.py @@ -34,6 +34,7 @@ class TestAdminOrdering(TestCase): in ModelAdmin rather that ordering defined in the model's inner Meta class. """ + request_factory = RequestFactory() @classmethod def setUpTestData(cls): @@ -43,9 +44,6 @@ class TestAdminOrdering(TestCase): Band(name='Van Halen', bio='', rank=2), ]) - def setUp(self): - self.request_factory = RequestFactory() - def test_default_ordering(self): """ The default ordering should be by name, as specified in the inner Meta |