def denormalize_form_dict(data_dict, form, attr_list):
 assert isinstance(form, forms.Form)
 res = django.http.QueryDict('', mutable=True)
 for attr in attr_list:
  try:
   res[str(form.add_prefix(attr))] = data_dict[attr]
  except KeyError:
   pass
 return res

def denormalize_form_dict ( data_dict , form , attr_list ) : assert isinstance ( form , forms . Form ) res = django . http . QueryDict ( '' , mutable = True ) for attr in attr_list : try : res [ str ( form . add_prefix ( attr ) ) ] = data_dict [ attr ] except KeyError : pass return res
denormalize_form_dict -> a querydict with the attributes set .