Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread Russell Keith-Magee
On 6/3/07, cesco <[EMAIL PROTECTED]> wrote: > > I created a form for adding Offer objects as follows: > > class AddOfferForm(forms.Form): > picture = forms.CharField(widget=forms.FileInput()) File uploads aren't currently handled by the newforms framework. The FileInput widget has been implem

Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread cesco
> Can you tell us more info about your view code ? Thanks for the quick response! in the view I have the following if request.method == 'POST': form = AddOfferForm(request.POST) if form.is_valid(): #new_offer = form.save() Offer.objects.create(name=form.cleaned

Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread sansmojo
Are you handling the file yourself? Are you using the save_FIELD_file method of the image field? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread EL AATIFI Sidi Mohamed
Can you tell us more info about your view code ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group