Thursday, May 26, 2011

Userprofile, signal and admin inline edit.

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 can of course remove signal but that wouldn't create profile if I
insert user manually.

So how to make things work with both, admin inline profile editing and a
signal?

--

Jani Tiainen


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

No comments:

Post a Comment