On Fri, Apr 19, 2013 at 4:16 PM, Hélio Miranda <helio...@gmail.com> wrote: > I draw the picture and then when I submite, gives me the following error: > > 'TestUploadForm' object has no attribute 'save' >
Your form has no save() method. What do you want to happen when you call save()? If you want to save the image as part of your TestUpload model, then your form should be a TestUpload ModelForm. Then it would have a save() method that saves the TestUpload model instance associated with the form, or a new one if no instance is associated. Saving the model instance would trigger the model to handle the file upload and copy the uploaded file to the location specified in the model's upload_to attribute. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.