Ярлыки

суббота, 3 ноября 2012 г.

django.forms documentation


Necessary fields:
https://docs.djangoproject.com/en/1.3/ref/forms/fields/

Tehere are few properties for each field:
1) Label - set normal text prefix for field
2) Initial  - set initial values, which must be correcting (initial values handle as unfilled)
3) widget define interface of the field:
https://docs.djangoproject.com/en/1.3/ref/forms/widgets/
                 widget.attrs - is way to do different fields
4) helptext - pop-up text(?)

About forms in docs:
http://docs.djangoproject.com/en/1.3/topics/forms/

Комментариев нет:

Отправить комментарий