Using django auth.views.LogoutView in django

I have two usertypes a and b how should i leverage the auth views i.e LogoutView that django provides how can my view look with what methods and attributes i should use and how should i set my login_url and etc this is how my function based view looks now..

views.py

@login_required
def logout(request):

    if request.user.usertype_a:
        logout(request)
        return redirect(reverse('user_a'))
    else:
        logout(request)
        return redirect(reverse('user_b'))
Back to Top