Skip to content

Commit

Permalink
Changed ugettext_layz to ugettext in the 'approve_page' method to ove…
Browse files Browse the repository at this point in the history
…rcome a bug in the django SQLite mapper.
  • Loading branch information
Jonathan Stoppani authored and Jonathan Stoppani committed Mar 19, 2010
1 parent d9fbc3f commit 92fe51f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cms/admin/pageadmin.py
Expand Up @@ -837,6 +837,8 @@ def approve_page(self, request, page_id):

approve_page(request, page)

# Django SQLite bug. Does not convert to string the lazy instances
from django.utils.translation import ugettext as _
self.message_user(request, _('Page was successfully approved.'))

if 'node' in request.REQUEST:
Expand Down

0 comments on commit 92fe51f

Please sign in to comment.