def new_pivot(self, attributes=None, exists=False):
        """
        Create a new pivot model instance.
        """
        pivot = self._related.new_pivot(self._parent, attributes, self._table, exists)

        return pivot.set_pivot_keys(self._foreign_key, self._other_key)
def new_pivot ( self , attributes = None , exists = False ) : pivot = self . _related . new_pivot ( self . _parent , attributes , self . _table , exists ) return pivot . set_pivot_keys ( self . _foreign_key , self . _other_key )
Create a new pivot model instance.