Ticket #22786: 22786-1.diff

File 22786-1.diff, 883 bytes (added by Claude Paroz, 10 years ago)

Doc addition

  • docs/ref/forms/widgets.txt

    diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
    index a2245a5..e71bbb5 100644
    a b foundation for custom widgets.  
    230230    .. method:: value_from_datadict(data, files, name)
    231231
    232232        Given a dictionary of data and this widget's name, returns the value
    233         of this widget. Returns ``None`` if a value wasn't provided.
     233        of this widget. ``files`` may contain data coming from
     234        :attr:`request.FILES <django.http.HttpRequest.FILES>`. Returns ``None``
     235        if a value wasn't provided. Note also that ``value_from_datadict`` may
     236        be called more than once during handling of form data, so if you
     237        customize it and add costly procedures, you should implement some
     238        caching mechanism yourself.
    234239
    235240.. class:: MultiWidget(widgets, attrs=None)
    236241
Back to Top