mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #23395 -- Limited line lengths to 119 characters.
This commit is contained in:
parent
84b0a8d2aa
commit
b1e33ceced
130 changed files with 5259 additions and 1501 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue