I just recently started out working with newforms and they generally
seem to be a joy but I cannot seem to access form.clean_data... (I am
using the most recent dev. version)
if request.method == 'POST':
new_data = request.POST.copy()
personal_form = UserPersonalForm(new_data, auto_id=True)
contact_form = UserContactForm(new_data, auto_id=True)
new_data = UserPersonalForm.clean_data
if personal_form.is_valid and contact_form.is_valid and
personal_form.errors == {} and
contact_form.errors == {}:
u.first_name = new_data['first_name']
AttributeError at /profile/edit/
type object 'signature' has no attribute 'clean_data'
Request Method: POST
Request URL: http://127.0.0.1:8000/profile/edit/
Exception Type: AttributeError
Exception Value: type object 'signature' has no attribute 'clean_data'
Exception Location:
/Library/WebServer/Documents/dgraham_net_py/../dgraham_net_py/user_profiles/views.py
in edit_profile, line 53
Any help would be appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---