Browse Source

Internacionaliza string

pull/900/head
Marcio Mazza 8 years ago
parent
commit
b6e4a9f662
  1. 5
      sapl/base/admin.py

5
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)

Loading…
Cancel
Save