Pylons / Pylons/deform

appstruct values of None render as "None"

Open
#245 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-pr should backport
Dominant language
JavaScript
Stars
423
Forks
158
PR merge metrics
No merged PRs in 30d

Description

Would it be better to render values as "" when given an appstruct value of None, as opposed to "None"?

appstruct={
    'some_value': None,
}
<input value=""

as opposed to:

<input value="None"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the appstruct-to-HTML rendering entry point and existing tests for input values, then verify that an appstruct value of None renders as an empty value rather than the literal text "None".

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.