From 5eb1e609cc686c14796cc49c3d32e7d88c22c170 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Mon, 27 Mar 2017 22:47:24 +0200 Subject: [PATCH] Fixed tests issues --- core/views/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/views/forms.py b/core/views/forms.py index 1fd45cd9..8751095b 100644 --- a/core/views/forms.py +++ b/core/views/forms.py @@ -5,6 +5,7 @@ from django.core.exceptions import ValidationError from django.contrib.auth import logout, login, authenticate from django.forms import CheckboxSelectMultiple, Select, DateInput, TextInput, DateTimeInput from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext from phonenumber_field.widgets import PhoneNumberInternationalFallbackWidget from ajax_select.fields import AutoCompleteSelectField @@ -59,7 +60,7 @@ class SelectFile(TextInput): 'title': _("Choose file"), 'name': name, } - output += '' + _("Choose file") + '' + output += '' + ugettext("Choose file") + '' return output class SelectUser(TextInput): @@ -73,7 +74,7 @@ class SelectUser(TextInput): 'title': _("Choose user"), 'name': name, } - output += '' + _("Choose user") + '' + output += '' + ugettext("Choose user") + '' return output # Forms