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

[views] Fix overriding with cw3.25

overriden function now returns a generator, we've to turn it to a list.
parent 5f1d7de7a9cb
......@@ -55,7 +55,7 @@ class StartDateAutomaticEntityForm(autoform.AutomaticEntityForm):
def editable_attributes(self, strict=False):
"""return a list of (relation schema, role) to edit for the entity"""
attributes = super(StartDateAutomaticEntityForm, self).editable_attributes(strict)
attributes = list(super(StartDateAutomaticEntityForm, self).editable_attributes(strict))
if self.linked_to.get(('seda_start_date', 'subject')):
eid = self.linked_to[('seda_start_date', 'subject')][0]
start_date_of = self._cw.entity_from_eid(eid).cw_etype
......
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