Я определил пользовательскую форму комментария в forms.py как пара
class CommentFormWithReply(CommentForm):
reply_to = forms.ModelChoiceField(queryset=CommentWithReply.objects.all(),
widget=forms.HiddenInput(), required=False)
def get_comment_model(self):
# Use our custom comment model instead of the built-in one.
return CommentWithReply
def get_comment_create_data(self):
# Use the data of the superclass, and add in the title field
data = super(CommentFormWithReply, self).get_comment_create_data()
return data
что я должен сделать, чтобы отобразить эту форму с информацией о текущем пользователе в качестве значений по умолчанию (имя, адрес электронной почты, веб-страница).