id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 12938 not possible to validate a many-to-many at the model ryazwinski nobody "Reference ticket #12065 for genesis of this ticket. It isn't currently possible to perform model-level validation of many-to-many relationships. For example: {{{ class Test(models.Model): f1 = models.CharField(max_length=100) m2m = models.ManyToManyField(Other) }}} It is not possible to ensure that the f1/m2m relationship is unique. Validation in the Test class cannot validate the m2m because Test won't have been saved yet. " New feature new Database layer (models, ORM) 1.1 Normal many_to_many, validation contact@… Accepted 0 0 0 0 0 0