Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
Added missing kwargs to get_comment_create_data docs example
Browse files Browse the repository at this point in the history
  • Loading branch information
BallisticPain authored and claudep committed Aug 7, 2018
1 parent 4c001c4 commit f6d9da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ field::
class CommentFormWithTitle(CommentForm):
title = forms.CharField(max_length=300)

def get_comment_create_data(self):
def get_comment_create_data(self, **kwargs):
# Use the data of the superclass, and add in the title field
data = super(CommentFormWithTitle, self).get_comment_create_data()
data = super(CommentFormWithTitle, self).get_comment_create_data(**kwargs)
data['title'] = self.cleaned_data['title']
return data

Expand Down

0 comments on commit f6d9da9

Please sign in to comment.