ugettext is deprecated--use gettext instead.
This commit is contained in:
parent
789d58f1b9
commit
6f76b7c611
4 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils import timezone
|
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):
|
class Disableable(models.Model):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from django.db import models
|
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
|
from authtools.models import AbstractNamedUser
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from django.conf import settings
|
||||||
from django.core.validators import (MaxLengthValidator, MinValueValidator,
|
from django.core.validators import (MaxLengthValidator, MinValueValidator,
|
||||||
MaxValueValidator)
|
MaxValueValidator)
|
||||||
from django.db import models
|
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.behaviors import Disableable, Timestampable
|
||||||
from core.utils import get_setting
|
from core.utils import get_setting
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils import timezone
|
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):
|
class Disableable(models.Model):
|
||||||
|
|
Loading…
Reference in a new issue