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/contrib/admin/options.py | |
| 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/contrib/admin/options.py')
| -rw-r--r-- | django/contrib/admin/options.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index c3ccc6c4fe..6c202c8e61 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -170,10 +170,10 @@ class BaseModelAdmin(metaclass=forms.MediaDefiningClass): # ForeignKey or ManyToManyFields if isinstance(db_field, (models.ForeignKey, models.ManyToManyField)): - # Combine the field kwargs with any options for formfield_overrides. - # Make sure the passed in **kwargs override anything in - # formfield_overrides because **kwargs is more specific, and should - # always win. + # Combine the field kwargs with any options for + # formfield_overrides. Make sure the passed in **kwargs override + # anything in formfield_overrides because **kwargs is more + # specific, and should always win. if db_field.__class__ in self.formfield_overrides: kwargs = {**self.formfield_overrides[db_field.__class__], **kwargs} @@ -2182,8 +2182,8 @@ class ModelAdmin(BaseModelAdmin): if obj is None: return self._get_obj_does_not_exist_redirect(request, self.opts, object_id) - # Populate deleted_objects, a data structure of all related objects that - # will also be deleted. + # Populate deleted_objects, a data structure of all related objects + # that will also be deleted. ( deleted_objects, model_count, |
