sibtc / django-multiple-user-types-example

Django Quiz Application

Home Page:https://django-school.vitorfs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

phommata opened this issue · comments

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

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