When experimenting with code in the shell, debugging or troubleshooting, I personally tend to do a lot of get. I know some object cause issue so I try to get them to poke them and see what's the problem.
When trying to get them, if I have the id, I always try to type Model.objects.get(id). Sometimes I correct myself before typing enter but that's something to remember and amount to a lot of little irritation, sometimes while trying to solve elusive issues or trying to fix asap some major issues in prod. Maybe that feature belong in a third party app. Monkey-patching is a thing. On Tue, Nov 6, 2018, 08:48 James Bennett <ubernost...@gmail.com wrote: > I still don't understand the problem this is solving; is typing "pk=" (or > "id=") that much of a burden? Or that frequently left out by accident? > > As it stands, I agree with Adam that this adds implementation complexity > (including potential future implementation complexity, as Ivan noted) and > proliferates different ways to do the same thing, without presenting much > in the way of concrete arguments for why it's needed. If there's a really > convincing case to be made for this, I'm open to reading it when it's made, > but for now I'd be -1 on the whole thing. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/CAL13Cg9ocm_LmZSGbQG%3DEB2U0Z%2BOF5eupJFwK3OWbyz46JDj5Q%40mail.gmail.com > <https://groups.google.com/d/msgid/django-developers/CAL13Cg9ocm_LmZSGbQG%3DEB2U0Z%2BOF5eupJFwK3OWbyz46JDj5Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAEuG%2BTZ6Nm4Hwm_oKBRbdzxztORgD%3DAAsFkZBPXnPULJhC2Egg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.