Hello, I've stumbled upon an issue when using JSONField from django.contrib.postgres.fields where I can't get it to run my additional validators when calling full_clean(). To show a simplified example:
validators.py: @deconstructible class TestValidator(object): def __call__(self, foo): raise ValidationError(message = _("Expected Error")) models.py: class DummyModel(models.Model): dummyJson = JSONField(validators = [TestValidator]) shell output: >>> from Dummy.models import DummyModel >>> import json >>> dummyJsonInput = json.loads("""{"foo" : "bar"}""") >>> dummyModelInstance = DummyModel(dummyJson = dummyJsonInput) >>> dummyModelInstance.full_clean() >>> Am I doing something wrong? I've read some documentation about needing to define __eq__ for migration purposes, but I tried defining it and it didn't seem to make a difference. Any help is appreciated. Thanks, -Ryan Causey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5f87cf69-ea62-44f2-a79c-0b6915d184bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.