Skip to content

Commit

Permalink
Fix removing company from event
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
henrikhorluck committed Mar 27, 2024
1 parent fa06eb2 commit 650027b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/events/dashboard/details/company.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% for company in event.companies.all %}
{% for ce in event.company_events.all %}
<p>
<form method="POST" action="{% url 'dashboard_events_remove_company' event.id company.id %}">
<form method="POST" action="{% url 'dashboard_events_remove_company' ce.event.id ce.id %}">
{% csrf_token %}
{{ company.name }}
{{ ce.company.name }}
<button type="submit" class="btn btn-danger btn-xs"><i class="fa fa-times"></i> Fjern</button>
</form>
</p>
Expand Down

0 comments on commit 650027b

Please sign in to comment.