Skip to content

Commit

Permalink
feat: set default initial value for rel field in ImageAdminForm
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Nov 20, 2024
1 parent 56e5889 commit 512699a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/image/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
)
Expand Down

0 comments on commit 512699a

Please sign in to comment.