Loading django/core/checks/model_checks.py +2 −2 Original line number Diff line number Diff line Loading @@ -31,9 +31,9 @@ def check_model_signals(app_configs=None, **kwargs): # The receiver is either a function or an instance of class # defining a `__call__` method. if isinstance(receiver, types.FunctionType): description = "The `%s` function" % receiver.__name__ description = "The '%s' function" % receiver.__name__ else: description = "An instance of the `%s` class" % receiver.__class__.__name__ description = "An instance of the '%s' class" % receiver.__class__.__name__ errors.append( Error( "%s was connected to the '%s' signal " Loading tests/model_validation/tests.py +3 −3 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ class ModelValidationTest(TestCase): errors = run_checks() expected = [ Error( "The `on_post_init` function was connected to the `post_init` " "The 'on_post_init' function was connected to the 'post_init' " "signal with a lazy reference to the 'missing-app.Model' " "sender, which has not been installed.", hint=None, Loading @@ -40,8 +40,8 @@ class ModelValidationTest(TestCase): id='signals.E001', ), Error( "An instance of the `OnPostInit` class was connected to " "the `post_init` signal with a lazy reference to the " "An instance of the 'OnPostInit' class was connected to " "the 'post_init' signal with a lazy reference to the " "'missing-app.Model' sender, which has not been installed.", hint=None, obj='model_validation.tests', Loading tests/check_framework/tests.py +1 −1 File changed.Contains only whitespace changes. Show changes Loading
django/core/checks/model_checks.py +2 −2 Original line number Diff line number Diff line Loading @@ -31,9 +31,9 @@ def check_model_signals(app_configs=None, **kwargs): # The receiver is either a function or an instance of class # defining a `__call__` method. if isinstance(receiver, types.FunctionType): description = "The `%s` function" % receiver.__name__ description = "The '%s' function" % receiver.__name__ else: description = "An instance of the `%s` class" % receiver.__class__.__name__ description = "An instance of the '%s' class" % receiver.__class__.__name__ errors.append( Error( "%s was connected to the '%s' signal " Loading
tests/model_validation/tests.py +3 −3 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ class ModelValidationTest(TestCase): errors = run_checks() expected = [ Error( "The `on_post_init` function was connected to the `post_init` " "The 'on_post_init' function was connected to the 'post_init' " "signal with a lazy reference to the 'missing-app.Model' " "sender, which has not been installed.", hint=None, Loading @@ -40,8 +40,8 @@ class ModelValidationTest(TestCase): id='signals.E001', ), Error( "An instance of the `OnPostInit` class was connected to " "the `post_init` signal with a lazy reference to the " "An instance of the 'OnPostInit' class was connected to " "the 'post_init' signal with a lazy reference to the " "'missing-app.Model' sender, which has not been installed.", hint=None, obj='model_validation.tests', Loading