Skip to content

In Section: Displaying the comment form #155

Description

@Xotor

In the section Displaying the comment form there is an error in the example code:

def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
kwargs['entry'] = self.entry
return kwargs

self.entry is not available in there and should be self.get_object() like in get_context_data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions