Changes between Initial Version and Version 1 of Ticket #20684
- Timestamp:
- Jul 2, 2013, 6:42:45 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20684 – Description
initial v1 3 3 The correct use would be: 4 4 5 <input type="email" required /> 5 {{{<input type="email" required />}}} 6 6 7 7 Currently 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. 8 8 9 9 Perhaps doing: 10 10 {{{ 11 11 widget=forms.TextInput( 12 12 attrs={ 13 13 'required': '' 14 14 })) 15 15 }}} 16 16 will result in an input of: 17 17 18 <input type="text" required /> 18 {{{<input type="text" required />}}}