summaryrefslogtreecommitdiff
path: root/docs/faq
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-11 08:07:25 -0400
committerTim Graham <timograham@gmail.com>2013-10-11 08:07:25 -0400
commit945e033a6964c8c83c1c5ce5f188baf41a7a7701 (patch)
tree4e4db1be3dab164327810f8505088bda6b9ce954 /docs/faq
parentb67ab75e82ec59dd4eeca119eeaf570d7c88556c (diff)
Fixed #8918 -- Made FileField.upload_to optional.
Thanks leahculver for the suggestion and dc and vajrasky for work on the patch.
Diffstat (limited to 'docs/faq')
-rw-r--r--docs/faq/usage.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/faq/usage.txt b/docs/faq/usage.txt
index be3839e08f..ecc473762f 100644
--- a/docs/faq/usage.txt
+++ b/docs/faq/usage.txt
@@ -45,10 +45,9 @@ Using a :class:`~django.db.models.FileField` or an
account.
#. Add the :class:`~django.db.models.FileField` or
- :class:`~django.db.models.ImageField` to your model, making sure to
- define the :attr:`~django.db.models.FileField.upload_to` option to tell
- Django to which subdirectory of :setting:`MEDIA_ROOT` it should upload
- files.
+ :class:`~django.db.models.ImageField` to your model, defining the
+ :attr:`~django.db.models.FileField.upload_to` option to specify a
+ subdirectory of :setting:`MEDIA_ROOT` to use for uploaded files.
#. All that will be stored in your database is a path to the file
(relative to :setting:`MEDIA_ROOT`). You'll most likely want to use the