From 211a1cf977c9ea7a09cc237cbba2841ef5c3516c Mon Sep 17 00:00:00 2001 From: Sukhryn Alexandr Date: Thu, 6 Jul 2023 19:06:22 +0300 Subject: [PATCH] fix import --- daterangefilter/apps.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daterangefilter/apps.py b/daterangefilter/apps.py index e374891..0bf8570 100644 --- a/daterangefilter/apps.py +++ b/daterangefilter/apps.py @@ -1,6 +1,8 @@ from django.apps import AppConfig -from django.utils.translation import ugettext_lazy as _ - +try: + from django.utils.translation import ugettext_lazy as _ +except ImportError: + from django.utils.translation import gettext_lazy as _ class DateRangeFilterAppConfig(AppConfig): name = 'daterangefilter'