Add capital to countries

This commit is contained in:
Sean Morley
2024-09-11 16:08:10 -04:00
parent 4dc11db21d
commit 6ac3f0541f
6 changed files with 39 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ class Country(models.Model):
name = models.CharField(max_length=100)
country_code = models.CharField(max_length=2, unique=True) #iso2 code
subregion = models.CharField(max_length=100, blank=True, null=True)
capital = models.CharField(max_length=100, blank=True, null=True)
class Meta:
verbose_name = "Country"