Deprecation of using pk in public ORM API

2022-01-27 Thread Albert
Hello all, I would like to know your opinion about deprecation of using "pk" alias in filters and other places of public ORM API. I use Django long time and never use "pk" because in my opinion it is misleading. I mean, instead: Car.objects.filter(pk=1) I use Car.objects.filter(id=1) Insted car.

Re: Deprecation of using pk in public ORM API

2022-01-27 Thread Curtis Maloney
Hello Mike, On Wed, 26 Jan 2022, at 20:46, Albert wrote: > > Hello all, > > I would like to know your opinion about deprecation of using "pk" > alias in filters and other places of public ORM API. > I use Django long time and never use "pk" because in my opinion > it is misleading. > I mean, ins

Re: Digest for django-developers@googlegroups.com - 2 updates in 1 topic

2022-01-27 Thread Ramez Ashraf
I almost never use `id` and always use `pk`.. at least whenever possible. It gives me more freedom and sets a normalisation to code logic. Very *very* useful 🙂 On Fri, 28 Jan 2022, 05:40 , wrote: > django-developers@googlegroups.com >