Opened 6 years ago

Closed 6 years ago

Last modified 6 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 Adam Vandenberg 6 years ago.
Documents "ContentFile" and fixes a typo on "ImageFile".

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by Tim Graham

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

Changed 6 years ago by Adam Vandenberg

Attachment: document-contentfile.diff added

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

comment:2 Changed 6 years ago by Adam Vandenberg

Has patch: set

comment:3 Changed 6 years ago by Tim Graham

Resolution: fixed
Status: newclosed

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

comment:4 Changed 6 years ago by Tim Graham

(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