views:

31

answers:

1

Why when I call a function like this :

function(request, **form.cleaned_data)

I can send form's data as a dictionary, but when I try doing like this :

data = **form.cleaned_data

I'm getting error ?

+2  A: 

The ** trick only works when a dictionary is expanded in a function call; you can't use it outside of a function call.

mipadi