In Django, how do I set a unique on a columN?
- by alex
class Radio(models.Model):
title = models.CharField(max_length=2000, blank=True, null=True)
listeners = models.IntegerField(default = 0, blank=True, null=True)
I don't want duplicate TITLE column. How do I set a unique key?