core: fix flow query

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-05 20:30:56 +02:00
parent 7581c84a37
commit ba3e0a0586
1 changed files with 1 additions and 1 deletions

View File

@ -13,5 +13,5 @@ class FlowInterfaceView(TemplateView):
template_name = "if/flow.html"
def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
kwargs["flow"] = get_object_or_404(Flow, slug=self.kwargs.get("slug"))
kwargs["flow"] = get_object_or_404(Flow, slug=self.kwargs.get("flow_slug"))
return super().get_context_data(**kwargs)