Re: Basic M2M Self Reference Through Question

2015-09-02 Thread monoBOT
to be able to diferentiate both follower and following you should define at least in one of those foreigkeys a related_name argument, so you can call back from your user. if you try to do it without related_name django will complain, showing you the error message and addressing you to the solluti

Re: Basic M2M Self Reference Through Question

2015-09-02 Thread James Schneider
On Sep 2, 2015 9:51 AM, "jeff newburn" wrote: > > I apologize if this is basic and I am just missing something in the django docs. The Django ORM allows you to do a self reference through another table. I understand everything about this process EXCEPT how Django determines which of the foreign

Basic M2M Self Reference Through Question

2015-09-02 Thread jeff newburn
I apologize if this is basic and I am just missing something in the django docs. The Django ORM allows you to do a self reference through another table. I understand everything about this process EXCEPT how Django determines which of the foreign keys to use for each side of the M2M relationsh