Skip to content

Conversation

@mununki
Copy link

@mununki mununki commented Oct 30, 2018

(I think this issue is already acknowledged by you. Also, there are feedbacks in comments thread in lecture page about it. I found this issue during a discussion in the slack channel, and I'd like to pull request with some codes.)

Currently, if API is called to add following to User, requesting user and following user are all added to their following symmetrically.

So, I added symmetrical=False and related_name= for reverse reference in the User model. and some codes to add requesting user as a follower to the following user asymmetrically.

Lastly, I hope to know how to add symmetrically one user as following and another user as follower in User model level with one side action, if it is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant