2👍
✅
Django-fluent-comments uses the default Django Comment
model in django.contrib.comments
. The FluentCommentsList
you see is actually a template tag that recieves a context from the calling template – including a comment_list
or target_object_id
if you want the tag to work.
Each Comment
includes a ForeignKey
to a user. The reason you get an error is because you try to access a field on user_id
, not on user
. If your User
model includes a user_picture
field, the following should work:
coms = context['comment_list']
for c in coms:
print c.user.user_picture
👤knbk
Source:stackexchange.com