summaryrefslogtreecommitdiff
path: root/docs/topics/files.txt
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2011-11-19 15:08:07 +0000
committerKaren Tracey <kmtracey@gmail.com>2011-11-19 15:08:07 +0000
commitc8c71057aad21d71b512a87cc4a7020e8abfb12f (patch)
tree9766597975ba0e3686b2b92ea50611f0d1e83288 /docs/topics/files.txt
parent549c495875d279c17fbd418238a305bcc51cdad6 (diff)
Fix #15646: Document that a FileField's full path can't be relied upon until its model has been saved to the database. Thanks poirier.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/files.txt')
-rw-r--r--docs/topics/files.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/files.txt b/docs/topics/files.txt
index e9d46f116e..9ab8d5c496 100644
--- a/docs/topics/files.txt
+++ b/docs/topics/files.txt
@@ -45,6 +45,12 @@ the details of the attached photo::
This object -- ``car.photo`` in the example -- is a ``File`` object, which means
it has all the methods and attributes described below.
+.. note::
+ The file is saved as part of saving the model in the database, so the actual
+ file name used on disk cannot be relied on until after the model has been
+ saved.
+
+
The ``File`` object
===================