web/views/editforms.py
branchtls-sprint
changeset 1322 92a2375b1de6
parent 1320 c85f4d8eff8b
child 1324 a82f83188695
--- a/web/views/editforms.py	Thu Apr 09 14:36:47 2009 +0200
+++ b/web/views/editforms.py	Thu Apr 09 15:52:31 2009 +0200
@@ -300,7 +300,7 @@
             if field is not None:
                 self.fields.append(field)
         self.maxrelitems = self.req.property_value('navigation.related-limit')
-        self.force_display = not not req.form.get('__force_display')
+        self.force_display = bool(self.req.form.get('__force_display'))
         
     @property
     def related_limit(self):