Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10779 closed (fixed)

Typo in Files documentation

Reported by: amiroff Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: typo, documentation
Cc: amiroff@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

At http://docs.djangoproject.com/en/dev/topics/files/#using-files-in-models documentation is as folows:

Consider the following model, using a FileField to store a photo:


But in the following code example it reads like

photo = models.ImageField(upload_to='cars')

Clearly example and expalanations afterwards explain usage of ImageField. Therefore, the abovementioned paragraph should be fixed.

Attachments (1)

10779.diff (535 bytes) - added by timo 6 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by amiroff

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Version changed from 1.0 to SVN

Changed 6 years ago by timo

comment:2 Changed 6 years ago by timo

  • Has patch set
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 6 years ago by russellm

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

(In [10567]) Fixed #10779 -- Corrected description of an example in the files docs. Thanks to timo for the patch.

comment:4 Changed 6 years ago by russellm

(In [10571]) [1.0.X] Fixed #10779 -- Corrected description of an example in the files docs. Thanks to timo for the patch.

Merge of r10567 from trunk.

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