From 1b36bff9ec060ef0645ad7b08f26f95541bfeaf6 Mon Sep 17 00:00:00 2001 From: Sergey Tereschenko Date: Sun, 27 Oct 2019 19:00:14 +0200 Subject: [PATCH] use tests for django 3 --- modeltranslation/tests/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modeltranslation/tests/tests.py b/modeltranslation/tests/tests.py index d39778f..6a5738d 100644 --- a/modeltranslation/tests/tests.py +++ b/modeltranslation/tests/tests.py @@ -2997,7 +2997,7 @@ class TestManager(ModeltranslationTestBase): # untrans is nullable so not included when select_related=True self.assertNotIn('_untrans_cache', fk_qs.select_related()[0].__dict__) - @skipUnless(django.VERSION[0] == 2, 'Applicable only to django 2.x') + @skipUnless(django.VERSION[0] >= 2, 'Applicable only to django > 2.x') def test_select_related_django_2(self): test = models.TestModel.objects.create(title_de='title_de', title_en='title_en') with auto_populate('all'):