Skip to content

Commit b921508

Browse files
committed
remove hack and correctly fix deprecation message
1 parent e1576e5 commit b921508

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ form }}
1+
{{ form.as_div }}

hordak/templates/hordak/transactions/reconcile.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@
7373
{% block reconcile_form_content %}
7474
<table>
7575
{% block reconcile_form_content_transaction_form %}
76-
{{ transaction_form }}
76+
{{ transaction_form.as_div }}
7777
{% endblock %}
7878
</table>
79-
{{ leg_formset.management_form }}
79+
{{ leg_formset.management_form.as_div }}
8080
<table class="table table-striped">
8181
{% for form in leg_formset %}
8282
{% block leg_formset %}
8383
<tr>
84-
<td>{{ form.amount }}</td>
85-
<td>{{ form.description }}</td>
86-
<td>{{ form.account }}</td>
84+
<td>{{ form.amount.as_div }}</td>
85+
<td>{{ form.description.as_div }}</td>
86+
<td>{{ form.account.as_div }}</td>
8787
</tr>
8888
{% endblock %}
8989
{% endfor %}

hordak/tests/views/test_transactions.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from decimal import Decimal
22
from unittest.mock import patch
33

4-
from django.forms.renderers import BaseRenderer
54
from django.test import TestCase
65
from django.urls import reverse
76
from moneyed import Money
@@ -11,10 +10,6 @@
1110
from hordak.utilities.currency import Balance
1211

1312

14-
# TODO: remove when https://code.djangoproject.com/ticket/34531 is fixed
15-
BaseRenderer.form_template_name = "django/forms/div.html" # type: ignore
16-
17-
1813
class TransactionCreateViewTestCase(DataProvider, TestCase):
1914
def setUp(self):
2015
self.view_url = reverse("hordak:transactions_create")

0 commit comments

Comments
 (0)