mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #19080 -- Fine-grained control over select_related in admin
This commit is contained in:
@@ -1161,9 +1161,11 @@ class ValidationTests(unittest.TestCase):
|
||||
class ValidationTestModelAdmin(ModelAdmin):
|
||||
list_select_related = 1
|
||||
|
||||
six.assertRaisesRegex(self,
|
||||
six.assertRaisesRegex(
|
||||
self,
|
||||
ImproperlyConfigured,
|
||||
"'ValidationTestModelAdmin.list_select_related' should be a bool.",
|
||||
"'ValidationTestModelAdmin.list_select_related' should be either a "
|
||||
"bool, a tuple or a list",
|
||||
ValidationTestModelAdmin.validate,
|
||||
ValidationTestModel,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user