Commit 8d8da71e authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[web/views] delete: show composite entities in predictible order

Iterate over relations type in alphabetical order, so the order is predictible
dans does not depend on PYTHONHASHSEED.

--HG--
branch : 3.25
parent a33c2b8d183b
......@@ -77,7 +77,8 @@ class DeleteConfFormView(FormViewMixIn, EntityView):
def _iter_composite_entities(self, entity, limit=None):
eids = set()
for rdef, role in entity.e_schema.composite_rdef_roles:
for rdef, role in sorted(entity.e_schema.composite_rdef_roles,
key=lambda x: x[0].rtype):
if rdef.rtype in self.show_composite_skip_rtypes:
continue
for centity in entity.related(
......
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