mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-26 13:04:01 +00:00
use tests for django 3
This commit is contained in:
parent
851bff4cb6
commit
1b36bff9ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue