Add field_name as a key on the _html_output dict
Just a small extension which I have found useful.
The use case is customising a field so that the row can be id
ed. For example:
class MyForm(Form):
def as_p(self):
return self._html_output(u'<p id="p_%(field_name)s">%(label)s %(field)s%(help_text)s</p>', u'%s', '</p>', u' %s', True)
Has patch: |
set
|
Triage Stage: |
Unreviewed → Design decision needed
|
Triage Stage: |
Design decision needed → Accepted
|
Severity: |
→ Normal
|
Type: |
→ New feature
|
Easy pickings: |
unset
|
Needs tests: |
set
|
Owner: |
changed from nobody to Ivan Kolodyazhny
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Change UI/UX from NULL to False.