From b762d32b4bfe5c17d1201d9483aca11621884845 Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Mon, 29 Jan 2024 12:06:01 +0200 Subject: [PATCH] Remove validator for govt regulations --- core/validators.py | 7 ------- 1 file changed, 7 deletions(-) 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."))