class emailform(forms.form): email = forms.emailfield() subject = forms.charfield(max_length=100) attach = forms.field(widget = forms.fileinput) message = forms.charfield(widget = forms.textarea)
i have form code above. form allows users attach single file. if want allow 4 attachments each mail, how need modify code?
well can use fieldfield
instead of field
attach field above, , input 4 of them.
http://docs.djangoproject.com/en/dev/ref/models/fields/#filefield
Comments
Post a Comment