Re: Add support for IDNA 2008

2022-09-13 Thread Carlton Gibson
Hi Julien. I didn't get a canonical answer from the security team yet, but it may be that we can make the idna an optional dependency quite easily. I already have it installed in my dev environment, for instance, coming from selenium and requests. >From the package docs:

Re: UniqueConstraint validation error message conditional vs non-conditional

2022-09-13 Thread Amol Rashinkar
Then what I do..? On Mon, 12 Sep, 2022, 8:36 pm David Sanders, wrote: > Hi Simon, > > > This should already work for constraints over a single field but not on > the ones with multiple fields[0] which is covered by the suite[1] but it > doesn't look like UniqueConstraint.validate is providing

Re: UniqueConstraint validation error message conditional vs non-conditional

2022-09-13 Thread charettes
Hello David, The proposed patch and test adjustments make sense to me, please open an associated ticket and PR. Thanks for digging this through and working on a solution! I think that an argument could be made for the `if e.code == "unique" and len(constraint.fields) == 1` branch in