Commit f6d9da9191a21741c2cebe4c5a37a9c9db8afea8
Committed by
Claude Paroz
1 parent
4c001c44
Added missing kwargs to get_comment_create_data docs example
Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -85,9 +85,9 @@ field:: | @@ -85,9 +85,9 @@ field:: | ||
| 85 | class CommentFormWithTitle(CommentForm): | 85 | class CommentFormWithTitle(CommentForm): |
| 86 | title = forms.CharField(max_length=300) | 86 | title = forms.CharField(max_length=300) |
| 87 | 87 | ||
| 88 | - def get_comment_create_data(self): | 88 | + def get_comment_create_data(self, **kwargs): |
| 89 | # Use the data of the superclass, and add in the title field | 89 | # Use the data of the superclass, and add in the title field |
| 90 | - data = super(CommentFormWithTitle, self).get_comment_create_data() | 90 | + data = super(CommentFormWithTitle, self).get_comment_create_data(**kwargs) |
| 91 | data['title'] = self.cleaned_data['title'] | 91 | data['title'] = self.cleaned_data['title'] |
| 92 | return data | 92 | return data |
| 93 | 93 |
Please
register
or
login
to post a comment