I have a model with two DateTimeFields, named start and end. As Python
datetime objects, I'd like to ensure that (start < end) for all valid
instances of this model. What's the right way to enforce this
invariant?
I tried making a custom Validator object and adding it to
start.validator_list, a
On Tue, 2007-04-17 at 09:09 -0700, Vinay Sajip wrote:
> Malcolm is right when he's talking about validation of user-entered
> data. However, invariants are also used to catch programming errors;
> it's certainly possible to have buggy business logic code which causes
> invariant checks to fail. An
2 matches
Mail list logo