> Why is an INSERT statement being generated even though I have
> commit=False? The two inserts are causing an Exception which prevent
> the actual user data from being saved (a row in the
> courses_userprofile table does get created, but with all columns
> except the id being blank)

Its odd that the two insert statements have different values for email, 
since between the user_profile_form.save and user_profile.save, you 
arent adding the email in. As Daniel suggested, its more likely the save 
is coming from elsewhere.

Install django-debug-toolbar, then click on the "explain" link on the 
SQL statement, this will tell you exactly where the statement is coming 
from.


--~--~---------~--~----~------------~-------~--~----~
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