Hi Everyone,

I'm using Django trunk, Python 2.6.

I have a model form with a FileField. The relevant portions of the
HTML are:

<form id="career_profile_form" action="." method="post"
enctype="multipart/form-data">
    {{ job_seeker_form.resume }}
    {{ job_seeker_form.resume.label_tag }}
    <span class="help">{{ job_seeker_form.resume.help_text }}</span>
    {{ job_seeker_form.resume.errors }}
</form>

In my view, the relevant portions of code are:

def create_career_profile(request):
    if request.method == 'POST':
        job_seeker_form = JobSeekerProfileForm(request.POST,
request.FILES, prefix='job_seeker')
        #do more stuff here
    else:
        job_seeker_form = JobSeekerProfileForm(prefix='job_seeker')

    return render_to_response, etc

Every time I post this form, I get a required validation error on the
resume field. Can anyone see what I'm doing wrong?

TIA,
Brandon
--~--~---------~--~----~------------~-------~--~----~
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, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to