Commit 7d0ad459 by Kálmán Viktor

dashboard: fix i18n error on search

parent 662f025a
......@@ -40,6 +40,7 @@ from django.forms.widgets import TextInput, HiddenInput
from django.template import Context
from django.template.loader import render_to_string
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy
from sizefield.widgets import FileSizeWidget
from django.core.urlresolvers import reverse_lazy
......@@ -1141,7 +1142,7 @@ vm_search_choices = (
class VmListSearchForm(forms.Form):
s = forms.CharField(widget=forms.TextInput(attrs={
'class': "form-control input-tags",
'placeholder': _("Search..."),
'placeholder': ugettext_lazy("Search...")
}))
stype = forms.ChoiceField(vm_search_choices, widget=forms.Select(attrs={
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment