new version of model_to_dict that includes non-editable fields