Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#7626 closed (fixed)

newforms docs: FileField used instead of ImageField

Reported by: charmless Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:


in the newforms docs for ImageField, it says:

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.

Change History (2)

comment:1 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 4 years ago by jacob

  • milestone 1.0 alpha deleted

Milestone 1.0 alpha deleted

Note: See TracTickets for help on using tickets.
Back to Top