Re: Userprofile, signal and admin inline edit.

2012-11-29 Thread Daniel Gerzo
Hello Jon, have you ever found a solution for this? Thanks. On Tuesday, June 14, 2011 5:04:09 PM UTC+2, Jon Biddle wrote: > > The issue seems to come from the fact that the order of operations > when you create the user looks like this: > > 1) Django admin saves the new User > 2) post_save on

Re: Userprofile, signal and admin inline edit.

2011-06-14 Thread Jon Biddle
The issue seems to come from the fact that the order of operations when you create the user looks like this: 1) Django admin saves the new User 2) post_save on User is triggered, and User's profile is created 3) Django admin saves the UserProfile... but it already exists, and an integrity error

Re: Userprofile, signal and admin inline edit.

2011-05-26 Thread Malcolm Box
On 26 May 2011 10:23, Jani Tiainen wrote: > If I extend auth.User with custom profile and add automatic profile > creation signal it works as expected. > > But if I try to add admin inline editor for profile when saving I get > exception about integration violation. > > It

Userprofile, signal and admin inline edit.

2011-05-26 Thread Jani Tiainen
If I extend auth.User with custom profile and add automatic profile creation signal it works as expected. But if I try to add admin inline editor for profile when saving I get exception about integration violation. It happens because admin tries to create second profile for user when saving. I