Is there a way to tie many objects one user from native User model? I've been reading around it, but I still don't quite understand whether I need to extend User model(I wouldn't, if not necessary), and whether that would be onetomany or manytoone.
Asked
Active
Viewed 36 times
1 Answers
1
You could make the objects point at the UserModel instead of having the UserModel pointing at other objects. If you do it that way, then you don't need to extend the default UserModel.
class SomeModel(models.Model):
owner = models.ForeignKey(user)

Vingtoft
- 13,368
- 23
- 86
- 135