from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _
from datetime import date


def validate_monday(value):
    if (value.isoweekday() % 7) != 1:
        raise ValidationError('Date must be a Monday')

d6f10b710277fff5507b75eebeec5ad1a8f41f5d
<mask token>

<mask token>


def validate_monday(value):
    if value.isoweekday() % 7 != 1:
        raise ValidationError('Date must be a Monday')

from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _
from datetime import date


def validate_monday(value):
    if value.isoweekday() % 7 != 1:
        raise ValidationError('Date must be a Monday')

from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _
from datetime import date


def validate_monday(value):
    if (value.isoweekday() % 7) != 1:
        raise ValidationError('Date must be a Monday')
