diff options
author | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-06-09 16:55:22 +0200 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-06-15 12:01:28 +0200 |
commit | 225d96533a8e05debd402a2bfe566487cc27d95f (patch) | |
tree | ccffbb958d84e8a2a7db9788af93a69ae36748d1 /tests/check_framework | |
parent | 0c0240aba8c769406248b5601126b891998fabb7 (diff) | |
download | django-225d96533a8e05debd402a2bfe566487cc27d95f.tar.gz |
Fixed #30427, Fixed #16176 -- Corrected setting descriptor in Field.contribute_to_class().
Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
Diffstat (limited to 'tests/check_framework')
-rw-r--r-- | tests/check_framework/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/check_framework/tests.py b/tests/check_framework/tests.py index 9e461c5040..f43abaca12 100644 --- a/tests/check_framework/tests.py +++ b/tests/check_framework/tests.py @@ -315,6 +315,12 @@ class CheckFrameworkReservedNamesTests(SimpleTestCase): id='models.E020' ), Error( + "The 'ModelWithFieldCalledCheck.check()' class method is " + "currently overridden by %r." % ModelWithFieldCalledCheck.check, + obj=ModelWithFieldCalledCheck, + id='models.E020' + ), + Error( "The 'ModelWithRelatedManagerCalledCheck.check()' class method is " "currently overridden by %r." % ModelWithRelatedManagerCalledCheck.check, obj=ModelWithRelatedManagerCalledCheck, |