app/soc/views/models/base.py
changeset 407 3cf5630d86d1
parent 403 d3e545a8bd26
child 409 9d24850db88f
--- a/app/soc/views/models/base.py	Wed Oct 22 16:55:35 2008 +0000
+++ b/app/soc/views/models/base.py	Wed Oct 22 17:03:08 2008 +0000
@@ -352,10 +352,7 @@
       form: the form that will be used
     """
 
-    if entity:
-      suffix = self._logic.constructKeyNameSuffix(entity)
-    else:
-      suffix = None
+    suffix = self._logic.constructKeyNameSuffix(entity)
 
     context['form'] = form
     context['entity'] = entity