Skip to content

Commit

Permalink
Restored Django flags in compat file (#6636)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthaian authored and FinalAngel committed Mar 19, 2019
1 parent c973e97 commit eeb1e47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cms/utils/compat/__init__.py
Expand Up @@ -8,6 +8,9 @@
PYTHON_VERSION = platform.python_version()

# These means "less than or equal to DJANGO_FOO_BAR"
DJANGO_1_8 = LooseVersion(DJANGO_VERSION) < LooseVersion('1.9')
DJANGO_1_9 = LooseVersion(DJANGO_VERSION) < LooseVersion('1.10')
DJANGO_1_10 = LooseVersion(DJANGO_VERSION) < LooseVersion('1.11')
DJANGO_1_11 = LooseVersion(DJANGO_VERSION) < LooseVersion('2.0')
DJANGO_2_0 = LooseVersion(DJANGO_VERSION) < LooseVersion('2.1')
DJANGO_2_1 = LooseVersion(DJANGO_VERSION) < LooseVersion('2.2')

0 comments on commit eeb1e47

Please sign in to comment.