views:

347

answers:

1

Django has very good documentation that describes how to write custom database fields and custom template tags and filters. I cannot find the document that describes how to write custom form fields and widgets. Does this document exist?

The way I've been able to write custom form fields and widgets is by reading the Django source code and imitating what I see there. I know that there are still things about implementing fields and widgets that I do not completely understand because I have not read any high level document that describes their interfaces.

+2  A: 

I have not found any good documentation (especially for widgets). I would suggest continuing to do it the way you are, and google specific problems (e.g., "creating a MultiValueField and MultiWidget").

Conley Owens