try the following:
class Employer(models.Model): name = models.CharField(max_length=50, verbose_name="Employer Name") pin = models.CharField(max_length=50, verbose_name="Employer PIN") def __unicode__(self): return self.name class Meta: unique_together = ('name', 'pin')
from Django Metadata Options .
Vinta source share