I have 2 different user types at the moment. After a successful login, I want the user to be redirected to its specific dashboard.
Depending on the user, it is possible to load in a different template in a generic view Class:
if request.user.user_type == 1:
# load template A
if request.user.user_type == 2:
# load template B
But I want to have two separate View Classes for each Type. How can I achieve this?