mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-29 17:59:36 +02:00
feat: enhance AdventureImage model with custom upload path and add latitude/longitude fields to Country model
This commit is contained in:
parent
67f6af8ca3
commit
5d12d103fc
11 changed files with 115 additions and 4 deletions
|
@ -15,6 +15,8 @@ class Country(models.Model):
|
|||
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)
|
||||
longitude = models.DecimalField(max_digits=9, decimal_places=6, null=True, blank=True)
|
||||
latitude = models.DecimalField(max_digits=9, decimal_places=6, null=True, blank=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Country"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue