summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-09-01 15:38:44 -0400
committerTim Graham <timograham@gmail.com>2012-09-01 15:38:44 -0400
commitc6088bc91d29b6b49eba0ec82b0239a557c658ef (patch)
tree93824879d04eab73b5c45abb27457137b0a52969
parent306d34873cff2722e209d8c6058f13eac1532a7b (diff)
Fixed #18840 - Added a mentioned of the upload_to parameter to the ModelForm example in file uploads.
-rw-r--r--docs/topics/http/file-uploads.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/http/file-uploads.txt b/docs/topics/http/file-uploads.txt
index 0b0ef3b193..b3a830c25e 100644
--- a/docs/topics/http/file-uploads.txt
+++ b/docs/topics/http/file-uploads.txt
@@ -183,7 +183,9 @@ Handling uploaded files with a model
If you're saving a file on a :class:`~django.db.models.Model` with a
:class:`~django.db.models.FileField`, using a :class:`~django.forms.ModelForm`
-makes this process much easier. The file object will be saved when calling
+makes this process much easier. The file object will be saved to the location
+specified by the :attr:`~django.db.models.FileField.upload_to` argument of the
+corresponding :class:`~django.db.models.FileField` when calling
``form.save()``::
from django.http import HttpResponseRedirect