def fill_model_instance(instance, data):
 for field in instance._meta.fields:
  if ((not field.editable) or (field.name not in data)):
   continue
  field.save_form_data(instance, data[field.name])
 return instance

def fill_model_instance ( instance , data ) : for field in instance . _meta . fields : if ( ( not field . editable ) or ( field . name not in data ) ) : continue field . save_form_data ( instance , data [ field . name ] ) return instance
fill whatever fields possible in instance using the data dict .