mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-11 06:03:10 +00:00
Simplification.
This commit is contained in:
parent
85567cdbee
commit
be01f2d6fa
1 changed files with 2 additions and 2 deletions
|
|
@ -14,11 +14,11 @@ from django.test import TransactionTestCase, override_settings
|
|||
from psycopg2.extras import NumericRange, DateRange, DateTimeTZRange
|
||||
from pytz import timezone
|
||||
|
||||
if django_version[:2] >= (1, 8):
|
||||
if django_version >= (1, 8):
|
||||
from .models import PostgresModel, Test
|
||||
|
||||
|
||||
@skipUnless(connection.vendor == 'postgresql' and django_version[:2] >= (1, 8),
|
||||
@skipUnless(connection.vendor == 'postgresql' and django_version >= (1, 8),
|
||||
'This test is only for PostgreSQL and Django >= 1.8')
|
||||
@skipIf(isinstance(caches['default'], FileBasedCache)
|
||||
and python_version_tuple()[:2] == ('2', '7'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue