django add relationships to user model
Add a ManytoMany relationship in your article to the User model. Everytime a user likes one article add him into it. Length of that field will be the number of like in that article.
I have a django project using the built in user model.
I need to add relationships to the user. For now a "like" relationship for articles the user likes and a "following" relationship for other users followed.
What's the best way to define these relationships? The django doc recommends creating a Profile model with a one on one relation to the user to add fields to the user. but given no extra fields will be added to the user profile in my case this is overkill.
Any suggestions?