from django.db import models


class Country(models.Model):
    class Meta:
        verbose_name = "Country"
        verbose_name_plural = "Countries"

    title = models.CharField(max_length=128)

    def __str__(self):
        return self.title


class City(models.Model):
    class Meta:
        verbose_name = "City"
        verbose_name_plural = "Cities"

    title = models.CharField(max_length=128)
    country = models.ForeignKey(Country, on_delete=models.CASCADE)

    def __str__(self):
        return self.title

5ed362c9d18c7dfc8e8443b7251965f859bfcc22
<mask token>


class City(models.Model):


    class Meta:
        verbose_name = 'City'
        verbose_name_plural = 'Cities'
    title = models.CharField(max_length=128)
    country = models.ForeignKey(Country, on_delete=models.CASCADE)

    def __str__(self):
        return self.title

<mask token>


class Country(models.Model):


    class Meta:
        verbose_name = 'Country'
        verbose_name_plural = 'Countries'
    <mask token>
    <mask token>


class City(models.Model):


    class Meta:
        verbose_name = 'City'
        verbose_name_plural = 'Cities'
    title = models.CharField(max_length=128)
    country = models.ForeignKey(Country, on_delete=models.CASCADE)

    def __str__(self):
        return self.title

<mask token>


class Country(models.Model):


    class Meta:
        verbose_name = 'Country'
        verbose_name_plural = 'Countries'
    title = models.CharField(max_length=128)

    def __str__(self):
        return self.title


class City(models.Model):


    class Meta:
        verbose_name = 'City'
        verbose_name_plural = 'Cities'
    title = models.CharField(max_length=128)
    country = models.ForeignKey(Country, on_delete=models.CASCADE)

    def __str__(self):
        return self.title

from django.db import models


class Country(models.Model):


    class Meta:
        verbose_name = 'Country'
        verbose_name_plural = 'Countries'
    title = models.CharField(max_length=128)

    def __str__(self):
        return self.title


class City(models.Model):


    class Meta:
        verbose_name = 'City'
        verbose_name_plural = 'Cities'
    title = models.CharField(max_length=128)
    country = models.ForeignKey(Country, on_delete=models.CASCADE)

    def __str__(self):
        return self.title

from django.db import models


class Country(models.Model):
    class Meta:
        verbose_name = "Country"
        verbose_name_plural = "Countries"

    title = models.CharField(max_length=128)

    def __str__(self):
        return self.title


class City(models.Model):
    class Meta:
        verbose_name = "City"
        verbose_name_plural = "Cities"

    title = models.CharField(max_length=128)
    country = models.ForeignKey(Country, on_delete=models.CASCADE)

    def __str__(self):
        return self.title
