Navigation Menu

Skip to content

Commit

Permalink
[1.4.X] Fixed #18840 - Added a mentioned of the upload_to parameter t…
Browse files Browse the repository at this point in the history
…o the ModelForm example in file uploads.

Backport of c6088bc from master
  • Loading branch information
timgraham committed Sep 1, 2012
1 parent 92f7af3 commit c9f1a13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/topics/http/file-uploads.txt
Expand Up @@ -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
Expand Down

0 comments on commit c9f1a13

Please sign in to comment.