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, ngal...@gmail.com 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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/87cda97d-9fd8-4264-bb37-8d466eec0cb4n%40googlegroups.com.

No comments:

Post a Comment