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'