formset creation in views.py:
ffact = formset_factory(Form,extra=somenum]))
fset = ffact(prefix='pfix')
validation in views.py:
ffact = formset_factory(Form,extra=3))
fset = ffact(request.POST)
if fset_is.valid():
blah blah
this is resulting in Exception Type: ValidationError at /app/index/ Exception Value: [u'ManagementForm data is missing or has been tampered with'] django-docs did mention about this. I'm not sure how to provide management data. I tried something like this ,
try:
fset = ffact(request.POST)
except ValidationError:
fset = None
if fset and fset.is_valid():
blah blah
But still i get the same error.Any ideas? Thanks.