I am using django to digitalise a form. This form is a little bit complex, and there are a lot of fields in it. I was wondering if Django could do form.cleaned\_data[] for all fields, in stead of declaring variables like `obj.fieldname = form.cleaned_data['fieldname']` for each field apart. 

I tried it with a forloop in the **views.py**, but that won't work

This is the forloop I'm talking about: 

```
def get_form_naw(request):
    if request.method == 'POST':
        form = Form1(request.POST)
        if form.is_valid():
            for x in Model1():
                formname = x.name
                o = Model1()
                o.formname = form.cleaned_data[formname]
            o.save()
    else:
        form = Form1
    return render(request, 'folder/home.html', context=locals())

```

I'm using a mysql database. My forms are declared like this: 
**forms.py**

```
class Form1(forms.ModelForm):

    class Meta:
        model = Model1
        exclude = ('id')

```