diff --git a/fernet_fields/utils.py b/fernet_fields/utils.py index aff6f9c..12d6d79 100644 --- a/fernet_fields/utils.py +++ b/fernet_fields/utils.py @@ -1,8 +1,7 @@ -import django +from django import VERSION as DJANGO_VERSION -DJANGO_VERSION = django.get_version().split('.') -if DJANGO_VERSION[0] < "3": +if DJANGO_VERSION[0] < 3: from django.utils.encoding import force_text else: from django.utils.encoding import force_str as force_text