earle/django-bootstrap — Issue #20: QueryDict instance loses data when using prefix?
Author: peterk
Created: 2012-01-07 08:32:48+00:00
State: open

I have a form where I want to use two BootstrapModelForm instances. When unpacking the data from these on postback using the prefix parameter I get the following error:

`'QueryDict' object has no attribute '_meta'`

I am using the regular "prefix" attribute to specify the form output prefix like this:

```python
user_form = UserForm(instance=request.POST, prefix="user")
```

The error occurs when Bootstrap is setting up the ModelForm object on line 149:

```python
class BootstrapModelForm(forms.ModelForm, BootstrapMixin):
def __init__(self, *args, **kwargs):
forms.ModelForm.__init__(self, *args, **kwargs)
```

Has django-bootstrap stripped some data along the way?