We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a form that needs to use some hidden fields (forms.HiddenInput()). The edit template displays these fields.
forms.HiddenInput()
One possible fix is to change the edit template (https://github.com/caktus/django_bread/blob/develop/bread/templates/bread/includes/edit.html) a little. Right after this line:
{% for field in form %}
add this:
{% if field.field.widget.input_type != 'hidden' %}
The text was updated successfully, but these errors were encountered:
We can fix this by using separate loops for hidden and visible fields. See https://docs.djangoproject.com/en/dev/topics/forms/#looping-over-hidden-and-visible-fields
Sorry, something went wrong.
No branches or pull requests
I have a form that needs to use some hidden fields (
forms.HiddenInput()
). The edit template displays these fields.One possible fix is to change the edit template (https://github.com/caktus/django_bread/blob/develop/bread/templates/bread/includes/edit.html) a little. Right after this line:
add this:
The text was updated successfully, but these errors were encountered: