1👍
✅
Consider using Unique Together. Change Your Model as below
class people(models.Model)
fname = models.CharField()
lname = models.CharField()
group = models.IntegerField()
partner = model.CharField()
class Meta:
unique_together = ('fname', 'lname', 'group',)
Source:stackexchange.com