Skip to content

Commit

Permalink
Merge pull request pinax#561 from alasdairnicol/patch-1
Browse files Browse the repository at this point in the history
Fix get_form_kwargs example in connect docs
  • Loading branch information
paltman committed May 19, 2018
2 parents 810d606 + 684fa88 commit 893572e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/user-guide/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@ class CreateCustomAccountView(FormView):
form_class = InitialCustomAccountForm
template_name = '<path to your template>'

def get_form_kwargs(self, *args, **kwargs):
def get_form_kwargs(self):
form_kwargs = super(
CreateBankAccountView, self
).get_form_kwargs(
*args, **kwargs
)
CreateCustomAccountView, self
).get_form_kwargs()
initial = form_kwargs.pop('initial', {})
form_kwargs['request'] = self.request
form_kwargs['country'] = 'US'
Expand Down

0 comments on commit 893572e

Please sign in to comment.