File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
- {{ form }}
1
+ {{ form.as_div }}
Original file line number Diff line number Diff line change 73
73
{% block reconcile_form_content %}
74
74
< table >
75
75
{% block reconcile_form_content_transaction_form %}
76
- {{ transaction_form }}
76
+ {{ transaction_form.as_div }}
77
77
{% endblock %}
78
78
</ table >
79
- {{ leg_formset.management_form }}
79
+ {{ leg_formset.management_form.as_div }}
80
80
< table class ="table table-striped ">
81
81
{% for form in leg_formset %}
82
82
{% block leg_formset %}
83
83
< 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 >
87
87
</ tr >
88
88
{% endblock %}
89
89
{% endfor %}
Original file line number Diff line number Diff line change 1
1
from decimal import Decimal
2
2
from unittest .mock import patch
3
3
4
- from django .forms .renderers import BaseRenderer
5
4
from django .test import TestCase
6
5
from django .urls import reverse
7
6
from moneyed import Money
11
10
from hordak .utilities .currency import Balance
12
11
13
12
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
-
18
13
class TransactionCreateViewTestCase (DataProvider , TestCase ):
19
14
def setUp (self ):
20
15
self .view_url = reverse ("hordak:transactions_create" )
You can’t perform that action at this time.
0 commit comments