Django: UserProfile with Unique Foreign Key in Django Admin
- by lazerscience
Hi,
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…