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 great idea that almost every subsystem uses, or at least offers, aliasing in some way. To successfully argue that having a 'pk' alias is a negative feature of the code base, you would have to also convince all the MySQL, MSSQL, Oracle and PostgreSQL devs , plus all the other framework devs, that aliasing is a bad thing, and that would be a herculean task. However, you have already reaped the rewards of your investigation; which is a greater understanding of the code base, and how the awesomeness of aliasing is used in Django, and you can now apply the pattern to many other situations. D On Wed, 2 Feb 2022 at 00:31, Albert <a...@interia.eu> wrote: > 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 (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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/hpkfxawtvfvrsbioliha%40erjj > <https://groups.google.com/d/msgid/django-developers/hpkfxawtvfvrsbioliha%40erjj?utm_medium=email&utm_source=footer> > . > ====================== -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CALzH9quuH7K1gYGbx0JZCgJ7L1i4myKBRDZirheK9VctFWpssQ%40mail.gmail.com.