summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/locale/django.pot9
-rw-r--r--ishtar_common/templatetags/window_field.py3
-rw-r--r--ishtar_common/widgets.py1
3 files changed, 9 insertions, 4 deletions
diff --git a/ishtar_common/locale/django.pot b/ishtar_common/locale/django.pot
index 270893b60..2a60902e5 100644
--- a/ishtar_common/locale/django.pot
+++ b/ishtar_common/locale/django.pot
@@ -5,6 +5,7 @@
# Étienne Loks <etienne.loks@iggdrasil.net>, 2015. #zanata
# Valérie-Emma Leroux <emma@iggdrasil.net>, 2016. #zanata
# Étienne Loks <etienne.loks@iggdrasil.net>, 2016. #zanata
+# Valérie-Emma Leroux <emma@iggdrasil.net>, 2017. #zanata
msgid ""
msgstr ""
@@ -1865,7 +1866,7 @@ msgid "where the magic happens."
msgstr ""
#: templates/window.html:40 templates/blocks/JQueryJqGrid.html:28
-#: templates/ishtar/manage_basket.html:9
+#: templates/ishtar/manage_basket.html:12
msgid "Add"
msgstr ""
@@ -1992,11 +1993,11 @@ msgstr ""
msgid "Control file"
msgstr ""
-#: templates/ishtar/manage_basket.html:7
-msgid "Checking \"Select all\" only select the current page."
+#: templates/ishtar/manage_basket.html:9
+msgid "Checking \"Select all\" only selects the current page."
msgstr ""
-#: templates/ishtar/manage_basket.html:10
+#: templates/ishtar/manage_basket.html:13
msgid "Basket content"
msgstr ""
diff --git a/ishtar_common/templatetags/window_field.py b/ishtar_common/templatetags/window_field.py
index 2a58d844a..5180955d8 100644
--- a/ishtar_common/templatetags/window_field.py
+++ b/ishtar_common/templatetags/window_field.py
@@ -9,6 +9,9 @@ register = template.Library()
def field(caption, data, pre_data='', post_data='', li=False):
if data in (True, False):
data = _(unicode(data))
+ # fix bad conversion
+ if data == 'None':
+ data = ""
return {'caption': caption, 'data': data, "pre_data": pre_data,
'post_data': post_data, 'li': li}
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index ddbfa91bf..020eca5af 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -61,6 +61,7 @@ class Select2Multiple(forms.SelectMultiple):
return super(Select2Multiple, self).render(name, value, attrs,
choices)
+
class CheckboxSelectMultiple(CheckboxSelectMultipleBase):
"""
Fix initialization bug.