From 512699ac25108c915ffad914a12d01c8196441a8 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)', )