Commit f313a80f authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[ui] Drop no more necessary arguments

They should have gone way with f05455602004 but buffer wasn't saved :$
parent 44f21dc91318
......@@ -192,14 +192,14 @@ class SubObjectsTab(tabs.TabsMixin, EntityView):
def display_subobjects_list(self, entity, edit=True, delete=True):
def display_subobjects_list(self, entity):
for rtype, role, target in self.rtype_role_targets:
rset = entity.related(rtype, role)
if rset:
if target is not None:
self.w('<h2>%s</h2>' % self._cw.__(target + '_plural'))
self._cw.view('list', rset=rset, parent=self.parent(entity), w=self.w,
subvid=self.subvid, tabid=self.__regid__, edit=edit, delete=delete)
subvid=self.subvid, tabid=self.__regid__)
def url_params(self, entity):
return {'__redirectparams': 'tab=' + self.__regid__}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment