Django: UserProfile with Unique Foreign Key in Django Admin
I have extended Django's User Model using a custom user profile called UserExtension . It is related to User through a unique ForeignKey Relationship, which enables me to edit it in the admin in an inline form! I'm using a signal to create a new profile for every new user: def create_user_profile(sender, instance, created, **kwargs): if created: try: profile, created = UserExtension.objects.get_or_create(user=instance) except: pass post_save.connect(create_user_profile, sender=User) (as described here for example: Extending the User model with custom fields in Django ) The problem is, that, if