Closed DashDot7 closed 3 years ago
Thanks for contributing, however it's correct to use get_full_name
in the form.
When listing comments, the name of the person that posted a comment comes from comment.name
, you can see that in a few templates like comment_tree.html
or comment.html
. Using comment.name
is resolved here in django-comments. See that the getter uses either get_full_name
or the name stored in the name
field of the comment instance.
To prevent displaying an empty name when listing comments the form.html
template requests the user to fill the name
field even if the user is authenticated but has an empty user.get_full_name()
.
My point is danirus that if the user in authenticated he/she doesn't need to be asked to enter username because the username should automatically be received from database. Thanks for response BTW.
I answered to your last comment already in my previous comment. Thanks for contributing.
The inbuilt User model in django uses username as a variable in order to store user's name instead of get_full_name