We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I ran into this problem when quering on a previous queryset.
I was creating a new queryset like this, because i need to use multiple databases.
previou_query = MyParanoid.objects.using('database2') # once done that, a queryset is created
After get my queryset targeted to a database, i neet to query, but when i do the following, django paranoid also filters deleted instances
query1 = previous_query.filter() # includes deleted instances
To fixe i needed to explicit pass parameter with_deleted like this:
with_deleted
query1 = previous_query.filter(with_deleted=False) # excludes deleted instances query1 = previous_query.filter(with_deleted=True) # includes deleted instances
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I ran into this problem when quering on a previous queryset.
I was creating a new queryset like this, because i need to use multiple databases.
After get my queryset targeted to a database, i neet to query, but when i do the following, django paranoid also filters deleted instances
To fixe i needed to explicit pass parameter
with_deleted
like this:The text was updated successfully, but these errors were encountered: