I have the following model:
from django.db import models
class Artist(models.Model):
    TYPE_CHOICES = (
        ('Person', 'Person'),
        ('Group', 'Group'),
        ('Other', 'Other'),)
    name = models.CharField(max_length=100)
    type = models.CharField(max_length=20, choices=TYPE_CHOICES)
The problem is that if I create an object like this:
Artist.objects.create(...) the type validation doesn't work.
How can I activate the validation for this?