mongoframes/frames.py
def unset(self, *fields):
        """Unset the given list of fields for this document."""

        # Send update signal
        signal('update').send(self.__class__, frames=[self])

        # Clear the fields from the document and build the unset object
        unset = {}
        for field in fields:
            self._document.pop(field, None)
            unset[field] = True

        # Update the document
        self.get_collection().update_one(
            {'_id': self._id},
            {'$unset': unset}
        )

        # Send updated signal
        signal('updated').send(self.__class__, frames=[self])
Unset the given list of fields for this document.
Unset the given list of fields for this document.
Unset the given list of fields for this document .
def unset(self, *fields):
        signal('update').send(self.__class__, frames=[self])
        unset = {}
        for field in fields:
            self._document.pop(field, None)
            unset[field] = True
        self.get_collection().update_one(
            {'_id': self._id},
            {'$unset': unset}
        )
        signal('updated').send(self.__class__, frames=[self])
def unset ( self , * fields ) : signal ( 'update' ) . send ( self . __class__ , frames = [ self ] ) unset = { } for field in fields : self . _document . pop ( field , None ) unset [ field ] = True self . get_collection ( ) . update_one ( { '_id' : self . _id } , { '$unset' : unset } ) signal ( 'updated' ) . send ( self . __class__ , frames = [ self ] )
Unset the given list of fields for this document.
Unset the given list of fields for this document .
"""Unset the given list of fields for this document.""" # Send update signal # Clear the fields from the document and build the unset object # Update the document # Send updated signal
self