Skip to content

Commit 59a71e8

Browse files
committed
fix: Remove reference to sunset LooseVersion of distutils
1 parent 924cf79 commit 59a71e8

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

djangocms_attributes_field/fields.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from django.utils.html import conditional_escape, mark_safe
1010
from django.utils.translation import gettext_lazy as _
1111

12-
from .utils import DJANGO_2_2
1312
from .widgets import AttributesWidget
1413

1514
regex_key_validator = RegexValidator(regex=r'^[a-z][-a-z0-9_:]*\Z',
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
from distutils.version import LooseVersion
21
from platform import python_version
32

43
from django import get_version
54

65
DJANGO_VERSION = get_version()
76
PYTHON_VERSION = python_version()
8-
9-
# These means "less than or equal to DJANGO_FOO_BAR"
10-
DJANGO_2_2 = LooseVersion(DJANGO_VERSION) < LooseVersion('3.0')

0 commit comments

Comments
 (0)