Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1653 closed enhancement (fixed)

[patch] Documentation for FileField and Manipulators

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

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by asmodai@…

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.

Changed 10 years ago by asmodai@…

Attachment: forms.txt.diff added

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

Changed 10 years ago by asmodai@…

Attachment: forms.txt.2.diff added

Updated patch, explaining enctype as well.

Changed 10 years ago by asmodai@…

Attachment: forms.txt.3.diff added

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

comment:2 Changed 10 years ago by Jacob

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