Use staff_member_required decorator, but without being redirected to the admin interface?

Viewed 15196

When I try to use staff_view, I get redirected in the admin authentication interface.

    from django.contrib.admin.views.decorators import staff_member_required

    @staff_member_required
    def staff_view(request..):
        ...

How can I make a custom login, and not getting redirected in the default admin login interface?

2 Answers
Related