diff --git a/docs/newforms.txt b/docs/newforms.txt index d7ef4d2599..ddb850f54c 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -860,6 +860,16 @@ level and at the form instance level, and the latter gets precedence:: Url: Comment: +Creating custom fields +---------------------- + +If the built-in ``Field`` classes don't meet your needs, you can easily create +custom ``Field`` classes. To do this, just create a subclass of +``django.newforms.Field``. Its only requirements are that it implement a +``clean()`` method and that its ``__init__()`` method accept the core arguments +mentioned above (``required``, ``label``, ``initial``, ``widget``, +``help_text``). + More coming soon ================