Re: Extending and Entity with the Django User model

2010-05-12 Thread x13
> something like that maybe works: > > class MyUser(models.Model): >     user = models.ForeignKey(User, unique=True) >     entity = models.ForeignKey(Entity, unique=True) >     > Sorry, this is my current proposal (but I really don't know if there is some difference with the previous one): c

Extending and Entity with the Django User model

2010-05-12 Thread x13
Hello, I need to extend the Django User model in this way: I have an Entity model an I want to define a relationship one-2-one from User to Entity (so a Django User can be an Entity, but an Entity can be something else). So what's the best way to extend the User model for this particular case??