parameters: (self)
return_statement: return final_data, fields
docstring: Runs through **ONLY** the changed/deleted fields & encodes them to be
          handed off to DynamoDB as part of an ``partial_save`` (``update_item``)
          call.
  
          Largely internal.
docstring_summary: Runs through **ONLY** the changed/deleted fields & encodes them to be
          handed off to DynamoDB as part of an ``partial_save`` (``update_item``)
          call.
docstring_tokens: Runs through ** ONLY ** the changed / deleted fields & encodes them to be handed off to DynamoDB as part of an partial_save ( update_item ) call .
function: def prepare_partial(self):
          """
          Runs through **ONLY** the changed/deleted fields & encodes them to be
          handed off to DynamoDB as part of an ``partial_save`` (``update_item``)
          call.
  
          Largely internal.
          """
          # This doesn't save on it's own. Rather, we prepare the datastructure
          # and hand-off to the table to handle creation/update.
          final_data = {}
          fields = set()
          alterations = self._determine_alterations()
  
          for key, value in alterations['adds'].items():
              final_data[key] = {
                  'Action': 'PUT',
                  'Value': self._dynamizer.encode(self._data[key])
              }
              fields.add(key)
  
          for key, value in alterations['changes'].items():
              final_data[key] = {
                  'Action': 'PUT',
                  'Value': self._dynamizer.encode(self._data[key])
              }
              fields.add(key)
  
          for key in alterations['deletes']:
              final_data[key] = {
                  'Action': 'DELETE',
              }
              fields.add(key)
  
          return final_data, fields
function_tokens: def prepare_partial ( self ) : # This doesn't save on it's own. Rather, we prepare the datastructure # and hand-off to the table to handle creation/update. final_data = { } fields = set ( ) alterations = self . _determine_alterations ( ) for key , value in alterations [ 'adds' ] . items ( ) : final_data [ key ] = { 'Action' : 'PUT' , 'Value' : self . _dynamizer . encode ( self . _data [ key ] ) } fields . add ( key ) for key , value in alterations [ 'changes' ] . items ( ) : final_data [ key ] = { 'Action' : 'PUT' , 'Value' : self . _dynamizer . encode ( self . _data [ key ] ) } fields . add ( key ) for key in alterations [ 'deletes' ] : final_data [ key ] = { 'Action' : 'DELETE' , } fields . add ( key ) return final_data , fields