> 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
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??
2 matches
Mail list logo