google-code-export / django-syncr

Automatically exported from code.google.com/p/django-syncr
0 stars 0 forks source link

Twitter followers/following symmetrical #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
The twitter follower and friends M2M relationships are symmetrical and 
there is no reason for them to be so. In fact, it makes no sense. This is 
why if you look in the database you will see every entry twice. like this;
id      from_twitteruser_id     to_twitteruser_id
1       1                       2
2       2                       1

What is the expected output? What do you see instead?
When you follow somebody, the relationship is one way. so I wouldn't expect 
that to happen at all. Unless, they are indeed following you back.

What version of the product are you using? On what operating system?
n/a

Please provide any additional information below.
More info on symmetrical fields here;
http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Ma
nyToManyFields.symmetrical

Original issue reported on code.google.com by douga...@gmail.com on 2 Mar 2009 at 11:07

GoogleCodeExporter commented 9 years ago
Nice catch, this is right on. I added symmetrical=False to the fields, which I 
think should prevent this...

Original comment by jesse.l...@gmail.com on 2 Mar 2009 at 2:55