Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#14762 closed (fixed)

documentation does not document ContentFile

Reported by: jesh Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords: File, ContentFile
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

See

http://docs.djangoproject.com/en/dev/ref/files/file/#django.core.files.File

Documentation could well tell about core.files.base.ContentFile. Otherwise it's not clear how a new file is written.

file.save(name,ContentFile(content.encode("utf-8")))

Attachments (1)

document-contentfile.diff (1.2 KB) - added by adamv 5 years ago.
Documents "ContentFile" and fixes a typo on "ImageFile".

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Changed 5 years ago by adamv

Documents "ContentFile" and fixes a typo on "ImageFile".

comment:2 Changed 5 years ago by adamv

  • Has patch set

comment:3 Changed 5 years ago by timo

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

(In [14742]) Fixed #14762 - Add documention for ContentFile. Thanks jesh for the suggestion and adamv for the patch.

comment:4 Changed 5 years ago by timo

(In [14743]) [1.2.X] Fixed #14762 - Add documention for ContentFile. Thanks jesh for the suggestion and adamv for the patch.

Backport of r14742 from trunk.

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