I am creating a Network class that has a lot to do with the Django User class. In other words, a Network can have many User , and each User has only one Network . It's easy to add many-to-many relationships because I can add a many-to-many field in the Network class; however, it is difficult to apply many-to-one relationships since I need to add a foreign key to the User class. I can not do this.
I have a UserProfile class that has a one-to-one relationship with User , but it is intended only to store additional information about User , and not for any relationship. All of my other relationships are related to User , not UserProfile .
Is there a way to create a many-to-one relationship with the User and Network classes without using UserProfile ? Thanks!
source share