MODEL CONSTRAINT (based on two dates)

13 views
Skip to first unread message

ngal...@gmail.com

unread,
Jun 28, 2021, 8:08:27 AM6/28/21
to django...@googlegroups.com

I have two models like this

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

image003.jpg

Simon Charette

unread,
Jun 30, 2021, 8:07:14 PM6/30/21
to Django users
Short answer is that you can't; constraints cannot spans across JOINs.

You might be able to use database triggers to emulate though.
Reply all
Reply to author
Forward
0 new messages