How to specify form with specific user type in DetailView Django?

前端 未结 0 1973
离开以前
离开以前 2021-02-08 01:17

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题