Задать вопрос

Тел: +7 965 3737 888

406

Просмотров

0

Ответов

Automatically trim newforms text fields

<p>Makes sure the value a user entered into a a text-based field is automatically trimmed during form cleaning / validation.</p>
<p>The 'field' parameter is expected to be a newforms.fields.Field <em>instance</em>.Only modifies str and unicode descending values, and passes everything else on untouched.</p>
<p>Example:</p>
form = form_for_model(Person)
make_trimming(form.fields['name'])

Вопрос полезен? Да0/Нет0
file_3636.py(396.0б)
None