Opened 8 years ago

Closed 5 years ago

#10321 closed New feature (wontfix)

Dont hardcode form label html.

Reported by: MockSoul Owned by: nobody
Component: Forms Version: 1.0
Severity: Normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Sometimes, form labels should be formatted differently. Current django forms does not allow this, by hardcoding label template in forms/ This my old patch which allows to change label template for any form. It is backward-compatible (used by me for several months, all django tests pass). Not sure is it elegant solution or not, but helps me a lot.

Attachments (1)

mocksoul_form_label_tag_templates.patch (2.4 KB) - added by MockSoul 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by MockSoul

comment:1 Changed 8 years ago by rokclimb15

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 5 years ago by SmileyChris

  • Resolution set to wontfix
  • Severity set to Normal
  • Status changed from new to closed
  • Type set to New feature

I'm going to make a call and say we won't go with this. I'm keen on exorcising all html from python eventually, and this is just making it more flexible.

If someone really wants to change the label html, they can just override the whole label_tag method.

Note: See TracTickets for help on using tickets.
Back to Top