I am migrating some custom validation code into declarative Constraints.
As a minimal example:
class MyModel(Model): a = IntegerField() b = IntegerField()
I’d like to create a
CheckConstraint that enforces that
a > b.
The examples in the docs show only basic comparisons to static values, I was wondering if comparing between columns was also possible?
The possible Field lookups I’ve been reading about as options to a