diff --git a/sapl/base/admin.py b/sapl/base/admin.py index 832b073db..941faf8d1 100644 --- a/sapl/base/admin.py +++ b/sapl/base/admin.py @@ -1,8 +1,9 @@ from django.contrib import admin from django.core.urlresolvers import reverse from django.shortcuts import redirect - +from django.utils.translation import ugettext_lazy as _ from reversion.models import Revision + from sapl.base.models import ProblemaMigracao from sapl.utils import register_all_models_in_admin @@ -37,7 +38,7 @@ class RevisionAdmin(admin.ModelAdmin): date_hierarchy = ('date_created') def change_view(self, request, obj=None): - self.message_user(request, 'You cannot change history.') + self.message_user(request, _('You cannot change history.')) return redirect('admin:reversion_revision_changelist') admin.site.register(Revision, RevisionAdmin)