diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /django/apps | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff) | |
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/apps')
| -rw-r--r-- | django/apps/registry.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py index 92de6075fc..4b727e157a 100644 --- a/django/apps/registry.py +++ b/django/apps/registry.py @@ -288,9 +288,9 @@ class Apps: referred model is not swappable, return None. This method is decorated with @functools.cache because it's performance - critical when it comes to migrations. Since the swappable settings don't - change after Django has loaded the settings, there is no reason to get - the respective settings attribute over and over again. + critical when it comes to migrations. Since the swappable settings + don't change after Django has loaded the settings, there is no reason + to get the respective settings attribute over and over again. """ to_string = to_string.lower() for model in self.get_models(include_swapped=True): @@ -378,8 +378,9 @@ class Apps: # the relation tree and the fields cache. self.get_models.cache_clear() if self.ready: - # Circumvent self.get_models() to prevent that the cache is refilled. - # This particularly prevents that an empty value is cached while cloning. + # Circumvent self.get_models() to prevent that the cache is + # refilled. This particularly prevents that an empty value is + # cached while cloning. for app_config in self.app_configs.values(): for model in app_config.get_models(include_auto_created=True): model._meta._expire_cache() |
