Re: `Model.validate_unique` excluding partial unique constraint

2021-06-16 Thread Gaga Ro
> yeah didn't want to step on your toes but I got very excited about trying it out 😅 Don't worry about that, it's a good thing this motivated you enough to advance on this topic. > I have a slight preference for the second option as it seems like it could be used in other context than constrai

Re: `Model.validate_unique` excluding partial unique constraint

2021-06-16 Thread charettes
> It looks like you went even further than that :D. yeah didn't want to step on your toes but I got very excited about trying it out 😅 > Should we still add Q.check() (which will be as you said before), then refactor BaseConstraint.validate() to use it? I think it would still be worth doing to

Re: Removal of USE_L10N setting

2021-06-16 Thread Jacob Rief
I in favor with René Fleschenberg's proposal to enforce localization using a template filter. It happened too often, that someone forgot to unlocalize a primary key in their templates causing unwanted results. -- You received this message because you are subscribed to the Google Groups "Django

Re: Removal of USE_L10N setting

2021-06-16 Thread René Fleschenberg
Hi Claude, > I understand this concern. I wonder if that could be solved separately, > for example by: >  - returning int subclasses from AutoField's to_python (a bit like > str/SafeString for handling escaping) >  - not localizing those integers, unless use_l10n is forced (True) > Does this look

Re: `Model.validate_unique` excluding partial unique constraint

2021-06-16 Thread Gaga Ro
It looks like you went even further than that :D. Should we still add Q.check() (which will be as you said before), then refactor BaseConstraint.validate() to use it? Le mercredi 16 juin 2021 à 02:04:31 UTC+2, charettes a écrit : > I meant 1. in my previous email where sql.Query.model is allowe

Re: #32749 PyMemcacheCache uses default_noreply=False although pymemcache recommends to set to True

2021-06-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > I've gone through the documentation of pymencache and if I'm not wrong its > nowhere written that it recommends default_noreply to be set to True > It's covered in the "best practices" section, which is a list of their recommendations: https://pymemcache.readthedocs.io/en/latest/getting_start