Fix for odette
[auf_rh_dae.git] / project / rh / validators.py
CommitLineData
56d821eb
OL
1# -*- encoding: utf-8 -*-
2
3import datetime
4from django.core.exceptions import ValidationError
5from django.utils.translation import ugettext_lazy as _
6
7def validate_date_passee(date):
4047b783 8 if date > datetime.date.today():
56d821eb 9 raise ValidationError(_(u"La date ne peut pas être future"))