[Answered ]-IntegrityError at /admin/auth/user/add/ using UserProfile

2👍

It seems like it is trying to create a second instance of UserProfile connected to the same User. This can happen if post_save signal gets fired twice.

As this answer points out, this can happen as a result of the order of model imports.

👤DhhJmm

Leave a comment