开发者

How do I access the AUTH_PROFILE_MODULE in Django's template?

开发者 https://www.devze.com 2023-01-27 22:26 出处:网络
I can开发者_Go百科 do this...and it prints the username. {{ user.username }} How can I print one of the field in my UserDetails model? (that\'s my AUTH_PROFILE_MODULE)

I can开发者_Go百科 do this...and it prints the username.

{{ user.username }}

How can I print one of the field in my UserDetails model? (that's my AUTH_PROFILE_MODULE)

{{ user.get_profile().avatar_link }}???


{{ user.get_profile.avatar_link }}

0

精彩评论

暂无评论...
验证码 换一张
取 消