caktus / caktus/django_bread

Edit template displays hidden fields

Open
#54 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
16
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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:

```
{% for field in form %}
```

add this:

```
{% if field.field.widget.input_type != 'hidden' %}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.