Skip to content

Commit

Permalink
Merge pull request #2515 from aamfahim/issue-2514
Browse files Browse the repository at this point in the history
Add email validator to "Reply-To address" setting
  • Loading branch information
tienne-B authored Oct 25, 2024
2 parents cb8a08f + 2a9d51e commit 7dbd247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabbycat/options/preferences.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from decimal import Decimal

from django.core.validators import MinValueValidator, validate_slug
from django.core.validators import EmailValidator, MinValueValidator, validate_slug
from django.utils.translation import gettext_lazy as _
from django_summernote.widgets import SummernoteWidget
from dynamic_preferences.preferences import Section
Expand Down Expand Up @@ -1272,6 +1272,7 @@ class ReplyToEmailAddress(StringPreference):
section = email
name = 'reply_to_address'
default = ""
field_kwargs = {'validators': [EmailValidator()]}


@tournament_preferences_registry.register
Expand Down

0 comments on commit 7dbd247

Please sign in to comment.