diff options
| author | Adam Johnson <me@adamj.eu> | 2025-06-11 16:46:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-11 12:46:28 -0300 |
| commit | 75cd4fc8e3ee9a47bb88b65813a3446b4ed0c2f3 (patch) | |
| tree | 877d345d93f6eadce5f5f8bda527927c253f09a2 /django/contrib/contenttypes | |
| parent | 1960ecd879ce351226b36e7ac0aa25616241b6f6 (diff) | |
Removed default value for app_configs in system check functions.
The documentation[0] encourages users to write functions without a
default for `app_configs`, and checks are always passed the argument.
[0] https://docs.djangoproject.com/en/5.2/topics/checks/
Diffstat (limited to 'django/contrib/contenttypes')
| -rw-r--r-- | django/contrib/contenttypes/checks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/contenttypes/checks.py b/django/contrib/contenttypes/checks.py index 753c5d22f8..aae9dcb31b 100644 --- a/django/contrib/contenttypes/checks.py +++ b/django/contrib/contenttypes/checks.py @@ -4,7 +4,7 @@ from django.apps import apps from django.core.checks import Error -def check_generic_foreign_keys(app_configs=None, **kwargs): +def check_generic_foreign_keys(app_configs, **kwargs): from .fields import GenericForeignKey if app_configs is None: @@ -25,7 +25,7 @@ def check_generic_foreign_keys(app_configs=None, **kwargs): return errors -def check_model_name_lengths(app_configs=None, **kwargs): +def check_model_name_lengths(app_configs, **kwargs): if app_configs is None: models = apps.get_models() else: |
