diff --git a/core/validators.py b/core/validators.py index ac24c0c38..7a375cbca 100644 --- a/core/validators.py +++ b/core/validators.py @@ -2,7 +2,6 @@ from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ -from urlextract import URLExtract today = date.today() @@ -22,9 +21,3 @@ def validate_event_date(e_date): def validate_future_date(e_date): if date(e_date.year, e_date.month, e_date.day) - today < timedelta(days=0): raise ValidationError(_("Event date should be in the future")) - - -def validate_local_restrictions(local_restrictions): - extractor = URLExtract() - if not extractor.has_urls(local_restrictions): - raise ValidationError(_("Please provide a link to your government website outlining this."))