Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion multilingual_model/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

logger = logging.getLogger(__name__)

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django.forms.models import BaseInlineFormSet
from django import forms

Expand Down
6 changes: 3 additions & 3 deletions multilingual_model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import re

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext

from django.db import models
from django.utils.translation import get_language
Expand Down Expand Up @@ -199,7 +199,7 @@ def __getattr__(self, attr):
)
)

def unicode_wrapper(self, property, default=ugettext('Untitled')):
def unicode_wrapper(self, property, default=gettext('Untitled')):
"""
Wrapper to allow for easy unicode representation of an object by
the specified property. If this wrapper is not able to find the
Expand Down