mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #19187 -- Raise consistent error from qs.values().delete()
This commit is contained in:
parent
11b8712cc7
commit
7de439f32d
2 changed files with 12 additions and 0 deletions
|
@ -267,6 +267,12 @@ class ProxyDeleteTest(TestCase):
|
|||
|
||||
self.assertEqual(len(FooFileProxy.objects.all()), 0)
|
||||
|
||||
def test_19187_values(self):
|
||||
with self.assertRaises(TypeError):
|
||||
Image.objects.values().delete()
|
||||
with self.assertRaises(TypeError):
|
||||
Image.objects.values_list().delete()
|
||||
|
||||
class Ticket19102Tests(TestCase):
|
||||
"""
|
||||
Test different queries which alter the SELECT clause of the query. We
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue