from datetime import date
from django.core.exceptions import ValidationError

def numeric_only(value: str):
    if not value.isnumeric():
        raise ValidationError("Phone number should be numeric.")

def date_no_future(value):
    today = date.today()
    if value > today:
        raise ValidationError('Cannot be in the future.')

def date_no_past(value):
    today = date.today()
    if value < today:
        raise ValidationError('Cannot be in the past.')

c6bd73267c77a62e3ad331f7c3772d0a1947c8b5
<mask token>

<mask token>


def numeric_only(value: str):
    if not value.isnumeric():
        raise ValidationError('Phone number should be numeric.')


<mask token>


def date_no_past(value):
    today = date.today()
    if value < today:
        raise ValidationError('Cannot be in the past.')

<mask token>


def numeric_only(value: str):
    if not value.isnumeric():
        raise ValidationError('Phone number should be numeric.')


def date_no_future(value):
    today = date.today()
    if value > today:
        raise ValidationError('Cannot be in the future.')


def date_no_past(value):
    today = date.today()
    if value < today:
        raise ValidationError('Cannot be in the past.')

from datetime import date
from django.core.exceptions import ValidationError


def numeric_only(value: str):
    if not value.isnumeric():
        raise ValidationError('Phone number should be numeric.')


def date_no_future(value):
    today = date.today()
    if value > today:
        raise ValidationError('Cannot be in the future.')


def date_no_past(value):
    today = date.today()
    if value < today:
        raise ValidationError('Cannot be in the past.')

from datetime import date
from django.core.exceptions import ValidationError

def numeric_only(value: str):
    if not value.isnumeric():
        raise ValidationError("Phone number should be numeric.")

def date_no_future(value):
    today = date.today()
    if value > today:
        raise ValidationError('Cannot be in the future.')

def date_no_past(value):
    today = date.today()
    if value < today:
        raise ValidationError('Cannot be in the past.')
