flows: FlowStageBinding: rename .flow to .target to fix select_subclasses()

This commit is contained in:
Jens Langhammer
2020-07-03 23:34:44 +02:00
parent dd74b73b4f
commit d3b0992456
35 changed files with 119 additions and 81 deletions

View File

@ -146,7 +146,7 @@ class FlowPlanner:
.select_related()
):
binding: FlowStageBinding = stage.flowstagebinding_set.get(
flow__pk=self.flow.pk
target__pk=self.flow.pk
)
engine = PolicyEngine(binding, user, request)
engine.request.context = plan.context