#models.py
#Django Models ChoiceField
class Profile(models.Model):
# Country Choices
CHOICES = (
('US', 'United States'),
('FR', 'France'),
('CN', 'China'),
('RU', 'Russia'),
('IT', 'Italy'),
)
username = models.CharField(max_length=300)
country = models.CharField(max_length=300, choices = CHOICES)
def __str__(self):
return self.username