Skip to content

delete function raises a TypeError #2

@dchenaux

Description

@dchenaux

Hi,

I've noticed that when you have the mongo module for debugtoolbar activated and try to do a delete query it raises the following TypeError : TypeError: __init__() got an unexpected keyword argument 'safe'

The concerned code is in the file operation_tracker.py line 115-132.
The function is def _remove(collection_self, spec_or_id, safe=False, **kwargs) and it is the safe argument the problem. If I comment it, there is no more problem.

What is this argument for ? Is it important ?

Thanks
David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions