jazzband / jazzband/django-floppyforms
A template variable called "value" can leak into the field rendering
Open
- Dominant language
- Python
- Stars
- 836
- Forks
- 150
- PR merge metrics
- No merged PRs in 30d
Description
If a variable `{{ value }}` is present outside the `{% formfield %}`, and the formfield has empty data (e.g. for an unbound form), then the value from the outerscope is used to render the field.
Contributor guide
Research direction
No files or tests are named. Start by reproducing the issue with an outer {{ value }} variable and an empty formfield in an unbound form, then trace the formfield rendering entry point. Done means the outer value no longer affects an empty field, with a regression test covering this template case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100