Django

Code

Ticket #7626 (closed: fixed)

Opened 2 months ago

Last modified 2 months ago

newforms docs: FileField used instead of ImageField

Reported by: charmless Assigned to: nobody
Milestone: 1.0 alpha Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation:
Needs tests: Patch needs improvement:

Description

in the newforms docs for ImageField?, it says:

ImageField
New in Django development version

Default widget: FileInput
Empty value: None
Normalizes to: An UploadedFile object that wraps the file content and file name into a single object.
Validates that file data has been bound to the form, and that the file is of an image format understood by PIL.
Error message keys: required, invalid, missing, empty, invalid_image
Using an ImageField requires that the Python Imaging Library is installed.

When you use a FileField on a form, you must also remember to bind the file data to the form.

On the last line, it should say ImageField? instead, or mention that ImageField? is a subclass of FileField?.

Attachments

Change History

07/04/08 21:34:38 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [7838]) Fixed #7626 -- Fixed a typo in the newforms docs.


Add/Change #7626 (newforms docs: FileField used instead of ImageField)




Change Properties
Action