Say I have a Person model:
class Person(models.Model):
name = models.CharField(max_length=50)
email = models.EmailField()
telephone = models.CharField(max_length=50)
For every Person I want to ensure that there is contact information. I don't need both email and telephone (though both is okay) but I need to ensure that at least one is provided.
I know I can check this stuff in forms, but is there a way I can do this at Model/database level to save repeating myself?