#NEWLINE# def get_key_from_instance( self , instance ) : #NEWLINE# #INDENT# '\n        Return the routing key for an instance.\n\n        >>> shard_key = Model._shards.get_key_from_instance(instance)\n        ' #NEWLINE# return self . get_key_from_kwargs ( ** dict ( ( ( f , getattr ( self , f ) ) for f in self . key ) ) )