Re: More eyes on Check Constraints

2017-08-13 Thread Ian Foote
Hi David, That's an interesting idea. I haven't thought very deeply about composite foreign keys myself, so I can't say for certain how easy it would be to build on top of my work. I did a quick search for prior discussion about this and found https://code.djangoproject.com/wiki/MultipleColumnPri

Re: More eyes on Check Constraints

2017-08-13 Thread David Sanders
Hi Ian, Interestingly enough I'd just recently written https://github.com/rapilabs/django-db-constraints based on Matt Schinckel's idea. I wrote that because although check constraints are great, I really wanted a way to supply any type of constraint - primarily composite foreign keys. I don