diff -r ea89ca9017c4 -r c96aa316d06b cubicweb/web/views/autoform.py --- a/cubicweb/web/views/autoform.py Thu Jun 27 12:13:21 2019 +0200 +++ b/cubicweb/web/views/autoform.py Thu Jun 27 12:27:37 2019 +0200 @@ -700,8 +700,8 @@ """ % (hidden and 'hidden' or '', divid, selectid, - xml_escape(json_dumps(entity.eid)), is_cell and 'true' or 'null', - relname, '\n'.join(options)) + xml_escape(json_dumps(entity.eid)), is_cell and 'true' or 'null', + relname, '\n'.join(options)) def _get_select_options(self, entity, rschema, role): """add options to search among all entities of each possible type""" @@ -816,8 +816,8 @@ if self.formtype == 'main': # add the generic relation field if necessary if entity.has_eid() and ( - self.display_fields is None or - '_cw_generic_field' in self.display_fields): + self.display_fields is None + or '_cw_generic_field' in self.display_fields): try: field = self.field_by_name('_cw_generic_field') except f.FieldNotFound: @@ -957,9 +957,9 @@ relation. """ return (self.should_display_add_new_relation_link( - rschema, existing, card) and - self.check_inlined_rdef_permissions( - rschema, role, tschema, ttype)) + rschema, existing, card) + and self.check_inlined_rdef_permissions( + rschema, role, tschema, ttype)) def check_inlined_rdef_permissions(self, rschema, role, tschema, ttype): """return true if permissions are granted on the inlined object and