Skip to content
New issue

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

#348 test for issue #371

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,13 @@ def test_217(self):
def test_232(self):
list(Post.objects.cache().filter(category__in=[None, 1]).filter(category=1))

def test_348(self):
category = Category.objects.create()
Post.objects.create(category=category)
Post.objects.create(category=category)
objs = Post.objects.all().only("pk", "title").select_for_update()
objs.filter(pk__in=Post.objects.all().values("pk")).delete()

@unittest.skipIf(connection.vendor == 'mysql', 'In MySQL DDL is not transaction safe')
def test_265(self):
# Databases must have different structure,
Expand Down