Django

Code

Ticket #5306 (closed: duplicate)

Opened 10 months ago

Last modified 7 months ago

ImageField upload_to - New Web Forms

Reported by: danielrubio Assigned to: nobody
Milestone: Component: django.newforms
Version: SVN Keywords: Image field upload_to, fs-rf
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Just trying out the forms.ImageField? and noticed it did not allow me to pass in the parameter upload_to ( which typically goes in the model.ImageField?).

Looked over django/newforms/fields.py in SVN, and added :

  • upload_to=None as a parameter to the init function on the Field class (Line 51).

Seems to be working on the surface at least, still haven't verified the upload working though.

Attachments

Change History

09/15/07 20:45:42 changed by PhiR

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

will be solved by #5361.

12/11/07 12:12:00 changed by Gulopine

  • keywords changed from Image field upload_to to Image field upload_to, fs-rf.

Add/Change #5306 (ImageField upload_to - New Web Forms)




Change Properties
Action