Changes between Initial Version and Version 1 of Ticket #20684


Ignore:
Timestamp:
07/02/2013 06:42:45 AM (20 months ago)
Author:
claudep
Comment:

Description reformatted, please use preview when posting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20684

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
  • Ticket #20684 – Description

    initial v1  
    33The correct use would be:
    44
    5 <input type="email" required />
     5{{{<input type="email" required />}}}
    66
    77Currently in forms.py attributes cannot be specified without a value which rely on the author knowing that a value of 'true' not being valid but 'required' being ok. it would be great if Django supports valueless attributes.
    88
    99Perhaps doing:
    10 
     10{{{
    1111widget=forms.TextInput(
    1212    attrs={
    1313        'required': ''
    1414}))
    15 
     15}}}
    1616will result in an input of:
    1717
    18 <input type="text" required />
     18{{{<input type="text" required />}}}
Back to Top