#112 WIP: Restructure CompensationAction

* changes action_type from ForeignKey into M2M
* adds migration
* changes form widget
* WIP: changes rendering on detail view of compensation
* TEST NOT CHECKED YET!
This commit is contained in:
2022-02-10 14:45:00 +01:00
parent 68b8ff07e9
commit 3814c2749a
8 changed files with 61 additions and 27 deletions

View File

@@ -44,7 +44,11 @@
{% for action in obj.actions.all %}
<tr>
<td class="">
<span>{{ action.action_type }}</span>
<ul>
{% for type in action.action_type.all%}
<li> {{type}} </li>
{% endfor %}
</ul>
{% if action.action_type_details.count > 0 %}
<br>
{% for detail in action.action_type_details.all %}