Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting otp_form.html to work on Wagtail 6 #228

Open
helmantel opened this issue Feb 28, 2024 · 0 comments
Open

Adjusting otp_form.html to work on Wagtail 6 #228

helmantel opened this issue Feb 28, 2024 · 0 comments

Comments

@helmantel
Copy link

The fields block in otp_form.html now needs to make use of the formattedfield template tag since the field template tag can no longer be used in Wagtail 6:

{% block fields %}
    {% formattedfield field=form.otp_token %}
    {% block extra_fields %}
        {% for field_name, field in form.extra_fields %}
            {% formattedfield field=field %}
        {% endfor %}
    {% endblock extra_fields %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant