Wednesday, June 30, 2021

Re: MODEL CONSTRAINT (based on two dates)

Short answer is that you can't; constraints cannot spans across JOINs.

You might be able to use database triggers to emulate though.

Le lundi 28 juin 2021 à 08:08:27 UTC-4, a écrit :

I have two models like this

How can I make models constraint based on the dates as shows on image??

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
To view this discussion on the web visit

No comments:

Post a Comment