To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/67A3688D-41C0-4E14-B235-51482689D285%40gmail.com.
On 9 Mar 2021, at 14:33, Tobias Bengfort <tobias....@posteo.de> wrote:
According to [0] ...
[0] https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#the-staff-member-required-decorator
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/5df94dc8-34f2-5484-15a9-bddac2eaec52%40posteo.de.
--
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-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/d10799d4-8a42-6caa-8e13-c2ce93256521%40posteo.de.
> Thoughts on deprecating it?
It seems like a good idea. However, it leads us to another question. Do we really need the is_staff field on the User Model if it is deprecated?
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFBPPP0bM2cr9etcMQwmprK1zX8gfKZ2wmEa7BW2CyiCrxTUog%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/0158dd682e26429ea4e5b12ad2a548c4%40iss2.ISS.LOCAL.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFBPPP0rBhf1vfYa7p9RWY_bkmUCM0w4o2DyTwyUZYhSN_S0vQ%40mail.gmail.com.
Yes, it can be reduced to a `user_passes_test` call, but that's more verbose for a limited gain (given that this convenience method already exists, is tested, etc).
Additionally, for a newer developer, getting equivalent functionality `user_passes_test` requires being able to grok callables
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/2422b53d-0201-431e-a1f0-f0ae8bb568e3n%40googlegroups.com.