#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: | no | UI/UX: | no |
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)
Change History (5)
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 14 years ago
Attachment: | document-contentfile.diff added |
---|
comment:2 by , 14 years ago
Has patch: | set |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
Documents "ContentFile" and fixes a typo on "ImageFile".