summaryrefslogtreecommitdiff
path: root/tests/admin_checks/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_checks/tests.py')
-rw-r--r--tests/admin_checks/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py
index 1829294a47..2a9643cd95 100644
--- a/tests/admin_checks/tests.py
+++ b/tests/admin_checks/tests.py
@@ -636,7 +636,9 @@ class SystemChecksTestCase(SimpleTestCase):
errors = MyAdmin(Album, AdminSite()).check()
expected = [
checks.Error(
- "'admin_checks.TwoAlbumFKAndAnE' has more than one ForeignKey to 'admin_checks.Album'.",
+ "'admin_checks.TwoAlbumFKAndAnE' has more than one ForeignKey "
+ "to 'admin_checks.Album'. You must specify a 'fk_name' "
+ "attribute.",
obj=TwoAlbumFKAndAnEInline,
id='admin.E202',
)