jazzband / jazzband/django-floppyforms

A template variable called "value" can leak into the field rendering

Open
#154 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.