[Django]-Column user_id is not unique, with Django UserProfiles


There are two attempts to create the same profile. One from the signal and one directly from the inlined admin form.

This question/answer covers it and a potential solution in more detail.


Perhaps check to see if this is a signal for creating a user. You may be seeing a race condition with a number of callbacks.

def create_user_profile(sender, instance, created, **kwargs):
    if created:

Leave a comment