Re: Validators and django.contrib.postgres.fields JSONField

2016-08-28 Thread Ryan Causey
Ah! Fantastic! I love it when I make a dumb mistake because it's an easy solution! Instead of: class DummyModel(models.Model): dummyJson = JSONField(validators = [TestValidator])#Using class, wrong! I should be doing: class DummyModel(models.Model): dummyJson = JSONField(validators = [T

Re: Validators and django.contrib.postgres.fields JSONField

2016-08-28 Thread Daniel Roseman
On Sunday, 28 August 2016 07:54:47 UTC+1, Ryan Causey wrote: > > So I've dug into this a little more, and I've come up with the debugger > trace below. > > -> dummyModelInstance.full_clean() > c:\program files\python35\lib\site-packages\django\db\models\base.py( > 1210)full_clean() > -> self.cle

Re: Validators and django.contrib.postgres.fields JSONField

2016-08-27 Thread Ryan Causey
So I've dug into this a little more, and I've come up with the debugger trace below. -> dummyModelInstance.full_clean() c:\program files\python35\lib\site-packages\django\db\models\base.py(1210) full_clean() -> self.clean_fields(exclude=exclude) c:\program files\python35\lib\site-packages\dja