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/widgets.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/widgets.py')
| -rw-r--r-- | django/contrib/admin/widgets.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py index fc83267e43..a601fc2667 100644 --- a/django/contrib/admin/widgets.py +++ b/django/contrib/admin/widgets.py @@ -215,8 +215,8 @@ class ForeignKeyRawIdWidget(forms.TextInput): class ManyToManyRawIdWidget(ForeignKeyRawIdWidget): """ - A Widget for displaying ManyToMany ids in the "raw_id" interface rather than - in a <select multiple> box. + A Widget for displaying ManyToMany ids in the "raw_id" interface rather + than in a <select multiple> box. """ template_name = "admin/widgets/many_to_many_raw_id.html" @@ -275,7 +275,8 @@ class RelatedFieldWidgetWrapper(forms.Widget): if not isinstance(widget, AutocompleteMixin): self.attrs["data-context"] = "available-source" self.can_change_related = not multiple and can_change_related - # XXX: The deletion UX can be confusing when dealing with cascading deletion. + # XXX: The deletion UX can be confusing when dealing with cascading + # deletion. cascade = getattr(rel, "on_delete", None) is CASCADE self.can_delete_related = not multiple and not cascade and can_delete_related self.can_view_related = not multiple and can_view_related |
