I am using unique_together constraint in my model.
class Facility(models.Model):
institute = models.ForeignKey(Institute)
name = models.CharField(max_length=100)
class Meta:
unique_together = ('institute', 'name',)
How can I get the duplicate values with same name and institute?