On Thursday, March 10, 2011 11:59:15 PM UTC-8, Ndungi Kyalo wrote:
>
> Hi guys. Am using django non-rel on appengine. I am using django's
> auth backend for my authentication, since I did not want to have to
> force my users to use gmail logins, and appengine models
> {google.appengine.ext.db} for the other models. I have a form where I
> allow users to edit their email. So :
>
> if settings_form.is_valid() :
> user = request.user
> user.email = request.POST['email']
> user.save()
>
> print request.POST['email'] returns the correct data entered in the
> form. But user.save() just doesnt save!
> Am I doing it correctly ? Is there something else I shopuld be doing ?
> --
> Regards,
> Guy-at-the-end-of-the-tether :-)
Are you sure that the condition is true - that the form is valid? Put some
logging in to be sure.
--
DR.
--
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.