country.py 168 Bytes
Newer Older
1
2
3
from django.db import models

class Country(models.Model):
4
5
    name = models.CharField(max_length=200)
    iso_code = models.CharField(primary_key = True, max_length=2)