Skip to content

Commit

Permalink
test subqueries django 2.X
Browse files Browse the repository at this point in the history
  • Loading branch information
louiseGrandjonc committed May 11, 2019
1 parent 08033ca commit 9d3198c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_multitenant/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
version = (2, 0, 6)
version = (2, 0, 7)

__version__ = ".".join(map(str, version))

Expand Down
4 changes: 2 additions & 2 deletions django_multitenant/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def test_delete_tenant_not_set(self):
def test_subquery(self):
# we want all the projects with the name of their first task
import django
if django.VERSION[1] < 11:
if django.VERSION[0] == 1 and django.VERSION[1] < 11:
# subqueries where only introduced in django 1.11
return

Expand Down Expand Up @@ -247,7 +247,7 @@ def test_subquery(self):
def test_subquery_joins(self):
# we want all the projects with the name of their first task
import django
if django.VERSION[1] < 11:
if django.VERSION[0] == 1 and django.VERSION[1] < 11:
# subqueries where only introduced in django 1.11
return

Expand Down

0 comments on commit 9d3198c

Please sign in to comment.