Re: Handling circular references in recursive foreign keys

2014-10-02 Thread Collin Anderson
Interesting. It shouldn't be following it at all unless it's using select_related, and even then it shouldn't use select_related for this by default because it's a nullable foreignkey. Or, are you doing some interesting code in your __init__ method? I just tried creating a circular reference in

Handling circular references in recursive foreign keys

2014-10-01 Thread Jorge M.
Django users: I'm currently trying to deal with something that works just fine in PSQL but causes django some headaches. I have a model like this: class Application(models.Model): ... #other stuff paired_with_app = models.ForeignKey( 'Application', blank=True,