Skip to content

Commit

Permalink
Fix encoding, thanks @chenull for notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkuty committed May 6, 2016
1 parent 53ebc39 commit b82329b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions horizon_contrib/forms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.utils.translation import ugettext_lazy as _
from horizon import forms, messages
from horizon_contrib.forms.models import create_or_update_and_get
from django.utils.encoding import smart_unicode
from django.utils.encoding import smart_text

try:
from crispy_forms.helper import FormHelper
Expand Down Expand Up @@ -149,7 +149,7 @@ def handle(self, request, data):
try:
messages.success(
request,
_(smart_unicode("Model %s was successfuly saved." % saved_model)))
_(smart_text("Model %s was successfuly saved." % saved_model)))
except Exception as e:
raise e
# swallowed Exception
Expand Down

0 comments on commit b82329b

Please sign in to comment.