I have created a role based login in Django 3.1.2.
And i have used @user_passes_test decorator to check the role of user according to his/her role he can