Code

Opened 3 years ago

Closed 3 years ago

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 3 years ago by timo

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

Changed 3 years ago by adamv

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

comment:2 Changed 3 years ago by adamv

  • Has patch set

comment:3 Changed 3 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 3 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.