class City models Model country models CharField verbose_name Страна m

1
2
3
4
5
6
7
class City(models.Model):
country = models.CharField(verbose_name="Страна", max_length=50)
area = models.CharField(verbose_name="Регион", max_length=50, blank=True, null=False)
region = models.CharField(verbose_name="Регион", max_length=50, blank=True, null=False)
city = models.CharField(verbose_name="Город", max_length=50, blank=True, null=False)
type = models.PositiveSmallIntegerField(verbose_name="Тип местности", choices=config['general']['location_type'], default=1)