[Answer]-Connection of 3 Models with Foreign Key

1👍

You get a infinite recursion in the Region.get_continent() method:

class Region(models.Model):
    ...
    def get_continent(self):
        return self.get_continent() 

Change it to:

    def get_continent(self):
        return self.country.continent

Leave a comment