fix(aufgaben): aufgabe_row.html nutzt aufgabe.ausschreibung_id statt ausschreibung.pk
Im globalen /aufgaben/-Kontext ist ausschreibung=None; die direkten FK-IDs auf dem Aufgabe-Objekt sind immer vorhanden und erfordern kein Queryset-Join. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9ef6e0950a
commit
b054824862
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{% load vergabe_tags %}
|
{% load vergabe_tags %}
|
||||||
<tr class="hover:bg-slate-50{% if aufgabe.status == 'ueberfaellig' %} bg-red-50{% endif %}">
|
<tr class="hover:bg-slate-50{% if aufgabe.status == 'ueberfaellig' %} bg-red-50{% endif %}">
|
||||||
<td class="py-2 pr-4">
|
<td class="py-2 pr-4">
|
||||||
<a href="{% url 'ausschreibungen:aufgaben:detail' ausschreibung.pk aufgabe.pk %}"
|
<a href="{% url 'ausschreibungen:aufgaben:detail' aufgabe.ausschreibung_id aufgabe.pk %}"
|
||||||
class="font-medium text-slate-800 hover:text-blue-600 line-clamp-1">
|
class="font-medium text-slate-800 hover:text-blue-600 line-clamp-1">
|
||||||
{{ aufgabe.titel|truncatechars:60 }}
|
{{ aufgabe.titel|truncatechars:60 }}
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<td class="py-2 pr-4 text-xs text-slate-600">{{ aufgabe.verantwortlicher|default:"—" }}</td>
|
<td class="py-2 pr-4 text-xs text-slate-600">{{ aufgabe.verantwortlicher|default:"—" }}</td>
|
||||||
<td class="py-2 pr-4">
|
<td class="py-2 pr-4">
|
||||||
<select name="status"
|
<select name="status"
|
||||||
hx-post="{% url 'ausschreibungen:aufgaben:status' ausschreibung.pk aufgabe.pk %}"
|
hx-post="{% url 'ausschreibungen:aufgaben:status' aufgabe.ausschreibung_id aufgabe.pk %}"
|
||||||
hx-target="closest tr"
|
hx-target="closest tr"
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
class="form-input text-xs py-1">
|
class="form-input text-xs py-1">
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
</td>
|
</td>
|
||||||
{% if aufgabe.status == 'erledigt' %}
|
{% if aufgabe.status == 'erledigt' %}
|
||||||
<td class="py-2">
|
<td class="py-2">
|
||||||
<form hx-post="{% url 'ausschreibungen:aufgaben:ergebnis' ausschreibung.pk aufgabe.pk %}"
|
<form hx-post="{% url 'ausschreibungen:aufgaben:ergebnis' aufgabe.ausschreibung_id aufgabe.pk %}"
|
||||||
hx-target="closest tr" hx-swap="outerHTML"
|
hx-target="closest tr" hx-swap="outerHTML"
|
||||||
class="flex gap-1 items-center">
|
class="flex gap-1 items-center">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue