How to access individual fields with of customised User model using AbstractUser?

9 views
Skip to first unread message

Sandip Nath

unread,
Jun 11, 2020, 9:36:44 AM6/11/20
to Django users
I have defined a user model inheriting AbstractUser from django.auth.models. How can I refer to each individual fields of that customized user model? Say if I want to refer to date of birth of the customised user what should I write? I need to show the user prifile, so in show_profile.html file, I wrote :

first name = {{ settings.AUTH_USER_MODEL.first_name }}
date 0f birth = {{ settings.AUTH_USER_MODEL.dob }}

But it didn't work. Any idea?
Reply all
Reply to author
Forward
0 new messages