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
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
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
3 matches
Mail list logo