Skip to content

Commit

Permalink
Confirmed support for Django 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Sep 26, 2022
1 parent be1f631 commit 5c9be2a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This page details the changes in the various ``django-formtools`` releases.

- Added Python 3.10 to test matrix.

- Confirmed support for Django 4.0.
- Confirmed support for Django 4.0 and 4.1.

2.3 (2021-04-18)
----------------
Expand Down
2 changes: 1 addition & 1 deletion docs/wizard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Here's a full example template:
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{{ form.as_table }}
{% endfor %}
{% else %}
{{ wizard.form }}
Expand Down
2 changes: 1 addition & 1 deletion formtools/templates/formtools/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<form action="" method="post">{% csrf_token %}
<table>
{{ form }}
{{ form.as_table }}
</table>
<input type="hidden" name="{{ stage_field }}" value="1" />
<p><input type="submit" value="{% trans "Preview" %}" /></p>
Expand Down
2 changes: 1 addition & 1 deletion formtools/templates/formtools/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>{% trans "Or edit it again" %}</h1>

<form action="" method="post">{% csrf_token %}
<table>
{{ form }}
{{ form.as_table }}
</table>
<input type="hidden" name="{{ stage_field }}" value="1" />
<p><input type="submit" value="{% trans "Preview" %}" /></p>
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def read(*parts):
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/forms/wizard.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<p>Step {{ step }} of {{ step_count }}</p>
<form action="." method="post">
<table>
{{ form }}
{{ form.as_table }}
</table>
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{{ previous_fields|safe }}
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ args_are_paths = false
envlist =
py{36,37,38,39}-django22
py{36,37,38,39,310}-django32
py{38,39,310}-django{40,main}
py{38,39,310}-django{40,41,main}

[testenv]
usedevelop = true
Expand All @@ -14,6 +14,7 @@ deps =
django22: Django>=2.2,<3.0
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
djangomain: https://github.com/django/django/archive/main.tar.gz
-r{toxinidir}/tests/requirements.txt
ignore_outcome =
Expand Down

0 comments on commit 5c9be2a

Please sign in to comment.