Ticket #15646: 15646.diff

File 15646.diff, 1.3 KB (added by Dan Poirier, 13 years ago)
  • docs/ref/models/fields.txt

    diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
    index a5d66f8..35e41ec 100644
    a b information on the available attributes and methods, see the  
    572572:class:`~django.core.files.File` class reference and the :doc:`/topics/files`
    573573topic guide.
    574574
     575.. note::
     576    The file is saved as part of saving the model in the database, so the actual
     577    file name used on disk cannot be relied on until after the model has been
     578    saved.
     579
    575580The uploaded file's relative URL can be obtained using the
    576581:attr:`~django.db.models.fields.FileField.url` attribute. Internally,
    577582this calls the :meth:`~django.core.files.storage.Storage.url` method of the
  • docs/topics/files.txt

    diff --git a/docs/topics/files.txt b/docs/topics/files.txt
    index e9d46f1..9ab8d5c 100644
    a b the details of the attached photo::  
    4545This object -- ``car.photo`` in the example -- is a ``File`` object, which means
    4646it has all the methods and attributes described below.
    4747
     48.. note::
     49    The file is saved as part of saving the model in the database, so the actual
     50    file name used on disk cannot be relied on until after the model has been
     51    saved.
     52
     53
    4854The ``File`` object
    4955===================
    5056
Back to Top