django-multiple-user-types-example icon indicating copy to clipboard operation
django-multiple-user-types-example copied to clipboard

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

Open phommata opened this issue 3 years ago • 1 comments
trafficstars

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

phommata avatar May 16 '22 16:05 phommata

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

ZeyadMoustafaKamal avatar May 31 '23 17:05 ZeyadMoustafaKamal