diff options
| author | Tim Graham <timograham@gmail.com> | 2012-09-01 15:38:44 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-09-01 15:40:28 -0400 |
| commit | c9f1a13f87174b21fe2b6230fc1b2f44e03c8d61 (patch) | |
| tree | feff8195d777144a89caaa78ae9f0f9462ba66f6 | |
| parent | 92f7af3c36ec62e0b55c69ae8e359e53c8cfec15 (diff) | |
[1.4.X] Fixed #18840 - Added a mentioned of the upload_to parameter to the ModelForm example in file uploads.
Backport of c6088bc91d from master
| -rw-r--r-- | docs/topics/http/file-uploads.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/http/file-uploads.txt b/docs/topics/http/file-uploads.txt index 8865e23936..05b58b91d1 100644 --- a/docs/topics/http/file-uploads.txt +++ b/docs/topics/http/file-uploads.txt @@ -184,7 +184,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 |
