Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1653 closed enhancement (fixed)

[patch] Documentation for FileField and Manipulators

Reported by: Viktor Kerkez Owned by: Jacob
Component: Documentation Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Documentation for this field is not quite good.
I had an 2h headake untill i figured that i have to do:

new_data = request.POST.copy()
new_data.update(request.FILES)

instead of just:

new_data = request.POST.copy()

if I want to use Add or Change manipulator for my model.

Attachments (3)

forms.txt.diff (1.8 KB ) - added by asmodai@… 18 years ago.
Patch to document FileField and ImageField's use in forms a bit
forms.txt.2.diff (2.2 KB ) - added by asmodai@… 18 years ago.
Updated patch, explaining enctype as well.
forms.txt.3.diff (2.2 KB ) - added by asmodai@… 18 years ago.
2nd update, fixes a typo and rewords part of a sentence

Download all attachments as: .zip

Change History (5)

comment:1 by asmodai@…, 18 years ago

Component: Admin interfaceDocumentation
Owner: changed from Adrian Holovaty to Jacob
Summary: Documentation for FileField and Manipulators[patch] Documentation for FileField and Manipulators
Version: SVN

Find a patch attached that explains FileField and ImageField a bit more as well as the stuff mentioned in this ticket.

by asmodai@…, 18 years ago

Attachment: forms.txt.diff added

Patch to document FileField and ImageField's use in forms a bit

by asmodai@…, 18 years ago

Attachment: forms.txt.2.diff added

Updated patch, explaining enctype as well.

by asmodai@…, 18 years ago

Attachment: forms.txt.3.diff added

2nd update, fixes a typo and rewords part of a sentence

comment:2 by Jacob, 18 years ago

Resolution: fixed
Status: newclosed

(In [3466]) Fixed #1653 -- added some documentation for FileFields/ImageFields. Thanks, Asmodai.

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