﻿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
19671	"Model field option ""validators"" not working with ManyToManyField"	fabio@…	ANUBHAV JOSHI	"{{{
# models.py

def validate_depends_on(value):
    # just raise an error, whatever the value
    raise ValidationError('Error')

class Package(models.Model):
    # ...
    depends_on = models.ManyToManyField(
        'self',
        symmetrical=False,
	related_name='required_by',
        blank=True,
        null=True,
        validators=[validate_depends_on]
        )
}}}

My custom validator is not called when saving a model instance through the admin. The same validator perfectly works with other fields. Also, removing blank and null options didn't help."	Bug	closed	Forms	dev	Normal	fixed	validators ManyToManyField	flo@… loic84	Accepted	1	0	0	0	0	0
