[Answer]-How can I check that two records contain the same information in 3 specific fields?

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',)
👤Sar009

Leave a comment