From 650027b6b0d1c0626ce951bb86cbeab286184305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8rl=C3=BCck=20Berg?= <36937807+henrikhorluck@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:38:00 +0100 Subject: [PATCH] Fix removing company from event It did not work since the second arg of dashboard_events_remove_company is the pk of the company_event (the endpoint should rather actually use the company_event_id, but this is an easier fix) --- templates/events/dashboard/details/company.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/events/dashboard/details/company.html b/templates/events/dashboard/details/company.html index 49c904e80..861626899 100644 --- a/templates/events/dashboard/details/company.html +++ b/templates/events/dashboard/details/company.html @@ -1,8 +1,8 @@ -{% for company in event.companies.all %} +{% for ce in event.company_events.all %}

-

+ {% csrf_token %} - {{ company.name }} + {{ ce.company.name }}