Ticket #3857: model-api.txt.patch

File model-api.txt.patch, 1021 bytes (added by whiteinge, 8 years ago)
  • docs/model-api.txt

     
    196196
    197197A file-upload field.
    198198
     199    ======================  ===================================================
     200    Argument                Description
     201    ======================  ===================================================
     202    ``upload_to``           Required. A string that will be appended to your
     203                            ``MEDIA_ROOT`` setting to determine the output of
     204                            the ``get_<fieldname>_url()`` helper function. You
     205                            may use strftime_ formatting.
     206    ======================  ===================================================
     207
    199208Has an extra required argument, ``upload_to``, a local filesystem path to
    200209which files should be upload. This path may contain `strftime formatting`_,
    201210which will be replaced by the date/time of the file upload (so that
Back to Top