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

Тел: +7 965 3737 888

448

Просмотров

0

Ответов

custom css classes for newforms

<p>This isn't really any trick, its just that I didn't find any documentation of this or any references in searching. There are a few changes proposed for css classes which might make this redundant, but for now this works!</p>
<p>If you want to add attributes for any fields, just include them in the widget constructor. They get written out in key value pairs when the input field is being created. e.g. in the example above, this will come out like:
'&lt;input type="text" name="start_date" id="id_start_date" class="vDateField required" size="10"/&gt;'</p>

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