summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-19 22:50:06 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-19 22:50:06 +0000
commit55ebc2b594243063afd315311b590bef04d7b61b (patch)
tree12ff9e8910f207fc1ed9068afb175cf7521fa023 /docs
parent44c329e1d3330ed4adfc8e60af08d1c550cdec6e (diff)
Modified [7999] based on some feedback from Marty Alchin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/db-api.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index 9d167a69da..ecd2a17e7a 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -2281,10 +2281,9 @@ where ``FOO`` is the name of the field. This returns the full filesystem path
to the file, according to your ``MEDIA_ROOT`` setting.
.. note::
- If you are using the ``upload_to`` parameter in your ``FileField``, it is
- only valid to call this method **after** saving the model when the field
- has been set. Prior to saving, the value returned will not contain the
- upload directory in the path.
+ It is only valid to call this method **after** saving the model when the
+ field has been set. Prior to saving, the value returned will not contain
+ the upload directory (the `upload_to` parameter) in the path.
Note that ``ImageField`` is technically a subclass of ``FileField``, so every
model with an ``ImageField`` will also get this method.
@@ -2298,8 +2297,7 @@ according to your ``MEDIA_URL`` setting. If the value is blank, this method
returns an empty string.
.. note::
- As with ``get_FOO_filename()``, if you are using the ``upload_to``
- parameter on your ``FileField``, it is only valid to call this method
+ As with ``get_FOO_filename()``, it is only valid to call this method
**after** saving the model, otherwise an incorrect result will be
returned.