mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23395 -- Limited line lengths to 119 characters.
This commit is contained in:
committed by
Tim Graham
parent
84b0a8d2aa
commit
b1e33ceced
@@ -1029,9 +1029,11 @@ class ListDisplayLinksCheckTests(CheckTestCase):
|
||||
list_display_links = ('non_existent_field',)
|
||||
|
||||
self.assertIsInvalid(
|
||||
ValidationTestModelAdmin, ValidationTestModel,
|
||||
"The value of 'list_display_links[0]' refers to 'non_existent_field', which is not defined in 'list_display'.",
|
||||
'admin.E111')
|
||||
ValidationTestModelAdmin, ValidationTestModel, (
|
||||
"The value of 'list_display_links[0]' refers to "
|
||||
"'non_existent_field', which is not defined in 'list_display'."
|
||||
), 'admin.E111'
|
||||
)
|
||||
|
||||
def test_missing_in_list_display(self):
|
||||
class ValidationTestModelAdmin(ModelAdmin):
|
||||
@@ -1244,9 +1246,10 @@ class OrderingCheckTests(CheckTestCase):
|
||||
|
||||
self.assertIsInvalid(
|
||||
ValidationTestModelAdmin,
|
||||
ValidationTestModel,
|
||||
"The value of 'ordering[0]' refers to 'non_existent_field', which is not an attribute of 'modeladmin.ValidationTestModel'.",
|
||||
'admin.E033',
|
||||
ValidationTestModel, (
|
||||
"The value of 'ordering[0]' refers to 'non_existent_field', "
|
||||
"which is not an attribute of 'modeladmin.ValidationTestModel'."
|
||||
), 'admin.E033'
|
||||
)
|
||||
|
||||
def test_random_marker_not_alone(self):
|
||||
|
||||
Reference in New Issue
Block a user