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
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,
2 matches
Mail list logo