Skip to content

Commit 0a677fe

Browse files
committed
add hack to fix deprecatdd warnings
1 parent 9af504b commit 0a677fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hordak/tests/views/test_transactions.py

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

4+
from django.forms.renderers import BaseRenderer
45
from django.test import TestCase
56
from django.urls import reverse
67
from moneyed import Money
@@ -10,6 +11,10 @@
1011
from hordak.utilities.currency import Balance
1112

1213

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+
1318
class TransactionCreateViewTestCase(DataProvider, TestCase):
1419
def setUp(self):
1520
self.view_url = reverse("hordak:transactions_create")

0 commit comments

Comments
 (0)