Daniel has point out the issue, but have a look at this speech from Django
Con last year http://blip.tv/djangocon/advanced-django-form-usage-5573287.
It has some great stuff in there.
-m
On 31 May 2012 06:14, Daniel Roseman wrote:
> So, compare this:
>
>
> def
So, compare this:
def __init__(self, mailboxes, *args, **kwargs):
>
with how you're calling it:
> form = MboxReg(request.POST, int(mailboxes))
>
>
and you should see why you're getting this:
> Error:
> Exception Value:
>
> int() argument must be a string or a number, not 'QueryDict'
Hi,
Trying a form with dynamic fields, but having no luck. Also not finding any
working examples out there :/
This is what I'm currently trying to use:
class MboxReg(forms.Form):
def __init__(self, mailboxes, *args, **kwargs):
super(MboxReg, self).__init__(*args, **kwargs)
#
3 matches
Mail list logo