Do not throw away the container of cross-linked parents

Since we use it twice, the second time to get the id field of each.
This commit is contained in:
Jeff Bradberry 2024-05-21 11:08:47 -04:00
parent 4cb061e7db
commit 8b4efbc973

View File

@ -98,8 +98,8 @@ for r in Role.objects.exclude(role_field__startswith='system_').order_by('id'):
plus.add(p)
if plus:
plus = [f"{x.content_type!r} {x.object_id} {x.role_field}" for x in plus]
sys.stderr.write(f"Role id={r.id} has cross-linked parents: {plus}\n")
plus_repr = [f"{x.content_type!r} {x.object_id} {x.role_field}" for x in plus]
sys.stderr.write(f"Role id={r.id} has cross-linked parents: {plus_repr}\n")
crosslinked_parents[r.id].extend(x.id for x in plus)
try: