def pack_dbobj(item):
 _init_globals()
 obj = item
 natural_key = _FROM_MODEL_MAP[(hasattr(obj, 'id') and hasattr(obj, 'db_date_created') and hasattr(obj, '__dbclass__') and obj.__dbclass__.__name__.lower())]
 return ((natural_key and ('__packed_dbobj__', natural_key, _TO_DATESTRING(obj), _GA(obj, 'id'))) or item)

def pack_dbobj ( item ) : _init_globals ( ) obj = item natural_key = _FROM_MODEL_MAP [ ( hasattr ( obj , 'id' ) and hasattr ( obj , 'db_date_created' ) and hasattr ( obj , '__dbclass__' ) and obj . __dbclass__ . __name__ . lower ( ) ) ] return ( ( natural_key and ( '__packed_dbobj__' , natural_key , _TO_DATESTRING ( obj ) , _GA ( obj , 'id' ) ) ) or item )
check and convert django database objects to an internal representation .