# HG changeset patch # User Sylvain Thénault # Date 1245756868 -7200 # Node ID d4c2fb633062780fa20e1cc320f3746e49701561 # Parent 098aa20759032895dc99cacc057604d694c1a0b4 add form parameter to control display of inlined relation form diff -r 098aa2075903 -r d4c2fb633062 web/views/autoform.py --- a/web/views/autoform.py Tue Jun 23 13:33:57 2009 +0200 +++ b/web/views/autoform.py Tue Jun 23 13:34:28 2009 +0200 @@ -292,7 +292,7 @@ by default true if there is no related entity and we need at least one """ - return not existant and card in '1+' + return not existant and card in '1+' or self.req.form.has_key('force_%s_display' % rschema) def should_display_add_new_relation_link(self, rschema, existant, card): """return true if we should add a link to add a new creation form