def _denormalize(obj, fields=None, save=False, overwrite=False):
if not fields:<EOL><INDENT>meta = obj._meta<EOL>fields = [f.name for f in meta.fields if not hasattr(f, '<STR_LIT>') and not f.primary_key and hasattr(meta, '<STR_LIT>' + f.name) and hasattr(meta, '<STR_LIT:_>' + f.name)]<EOL><DEDENT>for field in fields:<EOL><INDENT>if not overwrite and not isinstance(getattr(obj, field, None), NoneType):<EOL><INDENT>continue<EOL><DEDENT>if hasattr(obj, field):<EOL><INDENT>setattr(obj, field, getattr(obj, '<STR_LIT:_>' + field, None))<EOL><DEDENT><DEDENT>if save:<EOL><INDENT>obj.save()<EOL><DEDENT>return obj<EOL>
Update/populate any database fields that are not related fields (FKs) but have `_get`ters to populate them with