ugettext is deprecated--use gettext instead.

This commit is contained in:
RecursiveGreen 2019-06-06 15:44:56 -04:00
parent 789d58f1b9
commit 6f76b7c611
4 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
class Disableable(models.Model):

View file

@ -1,5 +1,5 @@
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from authtools.models import AbstractNamedUser

View file

@ -2,7 +2,7 @@ from django.conf import settings
from django.core.validators import (MaxLengthValidator, MinValueValidator,
MaxValueValidator)
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from core.behaviors import Disableable, Timestampable
from core.utils import get_setting

View file

@ -1,6 +1,6 @@
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
class Disableable(models.Model):