diff --git a/wagtail_feeds/models.py b/wagtail_feeds/models.py index 3e5096e..cbf8588 100644 --- a/wagtail_feeds/models.py +++ b/wagtail_feeds/models.py @@ -1,5 +1,8 @@ from django.db import models -from django.utils.translation import ugettext_lazy as _ +try: + from django.utils.translation import gettext_lazy as _ +except ImportError: + from django.utils.translation import ugettext_lazy as _ from wagtail.contrib.settings.models import ( BaseSetting,