class Region models Model name models CharField maxlength 100 def __st

1
2
3
4
5
6
7
8
class Region(models.Model):
name = models.CharField(maxlength=100)
def __str__(self):
return self.name
class City(models.Model):
region = models.ForeignKey(Region)
name = models.CharField(maxlength=100)