Re: Create indexes with expression using UniqueConstraint

2021-07-01 Thread Wladimir Guerra
Hi Thanks for the reply. I’ve accidentally pushed the send button before finish the message. 🤦🏻‍♂️ Regards, Wladimir > Em 1 de jul. de 2021, à(s) 10:25, Hannes Ljungberg > escreveu: > > Hi! > > Support for using expressions on UniqueConstraints will be available in > Django 4.0: > https://

Re: Create indexes with expression using UniqueConstraint

2021-07-01 Thread Hannes Ljungberg
Hi! Support for using expressions on UniqueConstraints will be available in Django 4.0: https://docs.djangoproject.com/en/dev/releases/4.0/#functional-unique-constraints torsdag 1 juli 2021 kl. 15:23:21 UTC+2 skrev wladimir@gmail.com: > Hello, > First of all, you've being doing a great wo

Create indexes with expression using UniqueConstraint

2021-07-01 Thread Wladimir Guerra
Hello, First of all, you've being doing a great work here. Django is an amazing framework! I have been woking in a new project and I need to do a multiple columns unique validation in which some of them is nullable. So I've use a UniqueConstraint like: class Item(Model): name = models.Char