mongoframes/frames.py
def cascade(cls, ref_cls, field, frames):
        """Apply a cascading delete (does not emit signals)"""
        from mongoframes.queries import to_refs
        ids = [to_refs(f[field]) for f in frames if f.get(field)]
        ref_cls.get_collection().delete_many({'_id': {'$in': ids}})
Apply a cascading delete (does not emit signals)
Apply a cascading delete (does not emit signals)
Apply a cascading delete ( does not emit signals )
def cascade(cls, ref_cls, field, frames):
        from mongoframes.queries import to_refs
        ids = [to_refs(f[field]) for f in frames if f.get(field)]
        ref_cls.get_collection().delete_many({'_id': {'$in': ids}})
def cascade ( cls , ref_cls , field , frames ) : from mongoframes . queries import to_refs ids = [ to_refs ( f [ field ] ) for f in frames if f . get ( field ) ] ref_cls . get_collection ( ) . delete_many ( { '_id' : { '$in' : ids } } )
Apply a cascading delete (does not emit signals)
Apply a cascading delete ( does not emit signals )
"""Apply a cascading delete (does not emit signals)"""
cls
ref_cls
field
frames