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 924cf79 commit 59a71e8Copy full SHA for 59a71e8
djangocms_attributes_field/fields.py
@@ -9,7 +9,6 @@
9
from django.utils.html import conditional_escape, mark_safe
10
from django.utils.translation import gettext_lazy as _
11
12
-from .utils import DJANGO_2_2
13
from .widgets import AttributesWidget
14
15
regex_key_validator = RegexValidator(regex=r'^[a-z][-a-z0-9_:]*\Z',
djangocms_attributes_field/utils.py
@@ -1,10 +1,6 @@
1
-from distutils.version import LooseVersion
2
from platform import python_version
3
4
from django import get_version
5
6
DJANGO_VERSION = get_version()
7
PYTHON_VERSION = python_version()
8
-
-# These means "less than or equal to DJANGO_FOO_BAR"
-DJANGO_2_2 = LooseVersion(DJANGO_VERSION) < LooseVersion('3.0')
0 commit comments