mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #19187 -- Raise consistent error from qs.values().delete()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user