Skip to content

Commit

Permalink
Remove validator for govt regulations
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Jan 29, 2024
1 parent 50eabb5 commit b762d32
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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."))

0 comments on commit b762d32

Please sign in to comment.