How to make an Inner Join in django?
问题 I want to show in an Html the name of the city, state, and country of a publication. But they are in different tables. Here is my models.py class country(models.Model): country_name = models.CharField(max_length=200, null=True) country_subdomain = models.CharField(max_length=3, null=True) def __str__(self): return self.country_name class countrystate(models.Model): state_name = models.CharField(max_length=200, null=True) country = models.ForeignKey(country, on_delete=models.CASCADE, null=True