diff --git a/CHANGES.rst b/CHANGES.rst index 7996033..5aee935 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,7 @@ CHANGES - `FieldTracker` now marks fields as not changed after `refresh_from_db` - `FieldTracker` now respects `update_fields` changed in overridden `save()` method +- Replace ugettext_lazy with gettext_lazy to satisfy Django deprecation warning 4.0.0 (2019-12-11) ------------------ diff --git a/model_utils/models.py b/model_utils/models.py index a826a1a..38cdd4d 100644 --- a/model_utils/models.py +++ b/model_utils/models.py @@ -1,7 +1,7 @@ from django.core.exceptions import ImproperlyConfigured from django.db import models, transaction, router from django.db.models.signals import post_save, pre_save -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from model_utils.fields import ( AutoCreatedField,