Re: Deprecation of using pk in public ORM API

2022-02-01 Thread Daryl
Hi Albert, I think you are going in the wrong direction here; We should leave the 'pk' alias in place, not because it would be hard to remove, and not because it exists in many places, but because aliasing is a stonking great idea. It exists in many places for precisely that reason ; its such a g

Re: Deprecation of using pk in public ORM API

2022-02-01 Thread Albert
Thank you for response.Now i see that it is not so easy as I thought.It is used in many other places in Django and probably also in django rest framework and other third parties libraries. -- You received this message because you are subscribed to the Google Groups "Django developers (Contrib

Re: DATABASES setting for async usage

2022-02-01 Thread Carlton Gibson
Hey Andrew. Thanks for pushing this work. It's very cool! So... Andrew (Godwin)'s current PR blocks out the async interface for QuerySet. For now, it's a light-weight wrapper around the existing sync code, using sync_to_async to hand-off the DB o