Reoraganized project
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Country(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
alpha2 = models.CharField(max_length=2)
|
||||
alpha3 = models.CharField(max_length=3)
|
||||
region = models.CharField()
|
||||
|
||||
class Meta:
|
||||
db_table = "countries"
|
||||
managed = False
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
Reference in New Issue
Block a user