Opened 9 years ago

Closed 9 years ago

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by asmodai@…

  • Component changed from Admin interface to Documentation
  • Owner changed from adrian to jacob
  • Summary changed from Documentation for FileField and Manipulators to [patch] Documentation for FileField and Manipulators
  • Version set to SVN

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

Changed 9 years ago by asmodai@…

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

Changed 9 years ago by asmodai@…

Updated patch, explaining enctype as well.

Changed 9 years ago by asmodai@…

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

comment:2 Changed 9 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

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

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