In my DetailView I want to specify form for specific user type like if user is a teacher then use AttendanceForm and if user is a student then use Studentleav
AttendanceForm
Studentleav