chore(api): rename country model fields
This commit is contained in:
parent
e730959e9f
commit
654314cb1b
2 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@ from django.db import models
|
|||
|
||||
|
||||
class Country(models.Model):
|
||||
isocode = models.CharField(primary_key=True, max_length=3)
|
||||
iso_code = models.CharField(primary_key=True, max_length=3, db_column="isocode")
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue