def form_to_model_save(model, form): for key in form.cleaned_data: setattr(model, key, form.cleaned_data[key]) model.save()