diff --git a/authority/admin.py b/authority/admin.py index 9b746b1..9afeb3d 100644 --- a/authority/admin.py +++ b/authority/admin.py @@ -1,6 +1,6 @@ from django import forms from django.http import HttpResponseRedirect -from django.utils.translation import ugettext, ungettext, gettext_lazy as _ +from django.utils.translation import gettext, ngettext, gettext_lazy as _ from django.shortcuts import render from django.utils.safestring import mark_safe from django.forms.formsets import all_valid @@ -100,7 +100,7 @@ def edit_permissions(modeladmin, request, queryset): context = { "errors": ActionErrorList(formsets), - "title": ugettext("Permissions for %s") % force_text(opts.verbose_name_plural), + "title": gettext("Permissions for %s") % force_text(opts.verbose_name_plural), "inline_admin_formsets": inline_admin_formsets, "app_label": app_label, "change": True, diff --git a/authority/views.py b/authority/views.py index f2b82be..fed2682 100644 --- a/authority/views.py +++ b/authority/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect, HttpResponseForbidden from django.apps import apps -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.template import loader from django.contrib.auth.decorators import login_required