From 6fba04ec4ff32b34cca61c6f1770ef6e81a40e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Ra=C3=BAl=20Villalba?= Date: Sat, 29 Feb 2020 20:05:16 -0300 Subject: [PATCH] Satisfy deprecation warning under Django 3.0.3 --- CHANGES.rst | 1 + model_utils/models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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,