From eed3ba93f2977f8e4cc2a61dd713a427d3dcd2da Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Wed, 20 Nov 2024 15:29:37 +0100 Subject: [PATCH] feat: set default initial value for rel field in ImageAdminForm --- backend/image/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/image/forms.py b/backend/image/forms.py index adc44dd5f..d9c113586 100644 --- a/backend/image/forms.py +++ b/backend/image/forms.py @@ -61,6 +61,7 @@ class ImageAdminForm(forms.ModelForm): rel = forms.CharField( max_length=255, required=False, + initial="noreferrer", help_text='The relationship attribute for the link (e.g., "nofollow" for SEO, ' '"noopener noreferrer" for security when linking to external sites)', )