diff --git a/apps/activity/forms.py b/apps/activity/forms.py index b6cf098b..70ff57f3 100644 --- a/apps/activity/forms.py +++ b/apps/activity/forms.py @@ -15,12 +15,6 @@ from .models import Activity, Guest class ActivityForm(forms.ModelForm): - def clean_date_start(self): - date_start = self.cleaned_data["date_start"] - if not self.instance.pk and date_start < timezone.now(): - self.add_error("date_start", _("You can't create a past activity.")) - return date_start - def clean_date_end(self): date_end = self.cleaned_data["date_end"] date_start = self.cleaned_data["date_start"] diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 7ff316e1..b4f194c1 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -23,10 +23,6 @@ msgstr "" msgid "activity" msgstr "" -#: apps/activity/forms.py:21 -msgid "You can't create a past activity." -msgstr "" - #: apps/activity/forms.py:28 apps/activity/models.py:127 msgid "The end date must be after the start date." msgstr "" diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index 42787f9a..7ea9abf0 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -23,10 +23,6 @@ msgstr "" msgid "activity" msgstr "activité" -#: apps/activity/forms.py:21 -msgid "You can't create a past activity." -msgstr "Vous ne pouvez pas créer une activité dans le passé." - #: apps/activity/forms.py:28 apps/activity/models.py:127 msgid "The end date must be after the start date." msgstr "La date de fin doit être après celle de début."