We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc23f20 commit e659dccCopy full SHA for e659dcc
pytest_django/migrations.py
@@ -1,8 +1,17 @@
1
# code snippet copied from https://gist.github.com/NotSqrt/5f3c76cd15e40ef62d09
2
+from pytest_django.lazy_django import get_django_version
3
+
4
5
class DisableMigrations(object):
6
7
+ def __init__(self):
8
+ self._django_version = get_django_version()
9
10
def __contains__(self, item):
11
return True
12
13
def __getitem__(self, item):
- return "notmigrations"
14
+ if self._django_version >= (1, 9):
15
+ return None
16
+ else:
17
+ return 'notmigrations'
0 commit comments