Repository: django-parler/django-parler-rest (language: python)

Issue:
django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy()
Hello, The only thing I'm personally see wrong with Treebeard and Django 3.0 is that 3.0 officially deprecated ugettext_lazy, and if you run python -Wall, you'll get a ton of RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().


Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index 1647ce9..45897bf 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ First configure a model, following the [django-parler documentation](https://dja
 
 ```python
 from django.db import models
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 from parler.models import TranslatableModel, TranslatedFields
 
diff --git a/parler_rest/fields.py b/parler_rest/fields.py
index 12ad480..ee97f9b 100644
--- a/parler_rest/fields.py
+++ b/parler_rest/fields.py
@@ -5,7 +5,7 @@
 from __future__ import unicode_literals
 from collections import OrderedDict
 from django.core.exceptions import ImproperlyConfigured
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 from rest_framework import serializers
 from rest_framework.fields import SkipField


Test patch:
diff --git a/testproj/models.py b/testproj/models.py
index 7668d1b..2606a21 100644
--- a/testproj/models.py
+++ b/testproj/models.py
@@ -3,7 +3,7 @@
 
 from django.db import models
 from django.utils.encoding import python_2_unicode_compatible
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 from parler.models import TranslatableModel, TranslatedFields, TranslatedField, TranslatedFieldsModel
 
diff --git a/testproj/settings.py b/testproj/settings.py
index 805e466..9d9de65 100644
--- a/testproj/settings.py
+++ b/testproj/settings.py
@@ -13,7 +13,7 @@
 import os.path
 
 import django
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 
 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)