Fix tests and broken forms

This commit is contained in:
Antoine Bartuccio 2022-08-04 17:20:21 +02:00
parent 08924c5e05
commit 320a896610
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@
</thead>
<tbody>
{% for widget in form_mailing_removal.subwidgets %}
{% set user = ms[widget.data.value][0] %}
{% set user = ms[widget.data.value.value][0] %}
<tr>
<td>{{ user.get_username }}</td>
<td>{{ user.get_email }}</td>

View File

@ -180,7 +180,7 @@ class ClubTest(TestCase):
)
self.assertTrue(response.status_code == 200)
self.assertTrue(
"<li>Vous n&#39;avez pas la permission de faire cela</li>"
"<li>Vous n&#x27;avez pas la permission de faire cela</li>"
in str(response.content)
)

View File

@ -18,7 +18,7 @@
<tbody>
{% set queryset = form.accepted_reports.field.queryset %}
{% for widget in form.accepted_reports.subwidgets %}
{% set report = queryset.get(id=widget.data.value) %}
{% set report = queryset.get(id=widget.data.value.value) %}
<form action="{{ url('pedagogy:moderation') }}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<tr>