Open Xotor opened 9 years ago
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
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