web/views/formrenderers.py
branch3.5
changeset 3244 1fc804b2c5ba
parent 2996 866a2c135c33
child 3263 5129918c671b
--- a/web/views/formrenderers.py	Wed Sep 16 14:30:32 2009 +0200
+++ b/web/views/formrenderers.py	Wed Sep 16 14:32:13 2009 +0200
@@ -407,7 +407,7 @@
             super(EntityFormRenderer, self).render_buttons(w, form)
 
     def relations_form(self, w, form):
-        srels_by_cat = form.srelations_by_category('generic', 'add')
+        srels_by_cat = form.srelations_by_category('generic', 'add', strict=True)
         if not srels_by_cat:
             return u''
         req = self.req