Hi,

On Tue, 9 Mar 2021 at 11:04, Carlton Gibson wrote:
> I’ve always taken it that @staff_member_required is for decorating
> views that aren’t part of the admin, and so not accessed via
> AdminSite.get_urls().

On 09/03/2021 13.21, Adam Johnson wrote:
admin_view does extra stuff like calling the admin site's get_permission method and using the admin login page rather than the default auth one:

According to [0] staff_member_required also uses the admin login page by default. That contradicts both your answers, doesn't it? Now I am more confused than before.

tobias

[0] https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#the-staff-member-required-decorator

--
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/c1ff3386-e50d-9de6-816b-8019b5d25e73%40posteo.de.
  • Dif... Tobias Bengfort
    • ... Carlton Gibson
      • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
        • ... Tobias Bengfort
          • ... Carlton Gibson
            • ... Tobias Bengfort
              • ... Carlton Gibson
                • ... Tobias Bengfort
                • ... Timothy McCurrach
                • ... Matthew Pava
                • ... Timothy McCurrach
                • ... Ian Foote
                • ... Kevin Grinberg
                • ... 'Adam Johnson' via Django developers (Contributions to Django itself)

Reply via email to