From b08d1d8e768fde859af2463517468e8bd2bc4f11 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 31 Mar 2011 21:34:29 +0200 Subject: Minor display bug --- ishtar/furnitures/widgets.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar') diff --git a/ishtar/furnitures/widgets.py b/ishtar/furnitures/widgets.py index 1ef83dd6e..ff6af16fb 100644 --- a/ishtar/furnitures/widgets.py +++ b/ishtar/furnitures/widgets.py @@ -41,6 +41,8 @@ class DeleteWidget(forms.CheckboxInput): class SquareMeterWidget(forms.TextInput): def render(self, name, value, attrs=None): + if not value: + value = u"" final_attrs = flatatt(self.build_attrs(attrs, name=name, value=value)) output = u' %s '\ u'(0 ha)' % (final_attrs, -- cgit v1.2.3