sibtc / django-multiple-user-types-example

Django Quiz Application
https://django-school.vitorfs.com
MIT License
592 stars 464 forks source link

How does request.user.student work in the view? #21

Open phommata opened 2 years ago

phommata commented 2 years ago

From what I understand, student is not a fieldname on user. So I would think request.user.student is not possible.

ZeyadMoustafaKamal commented 1 year ago

No this isn't the built-in user model ... You can check the models.py file so you can find the fields like is_student and is_teacher