From 0ba286129d0a3189fd955783d705188cdf295d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodor=20M=C3=A1t=C3=A9?= <bodor.mate@kszk.bme.hu> Date: Fri, 4 Jan 2019 20:28:02 +0100 Subject: [PATCH] Remove event date validation --- src/stats/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/stats/models.py b/src/stats/models.py index 0eb5c70..d8ea909 100644 --- a/src/stats/models.py +++ b/src/stats/models.py @@ -12,10 +12,6 @@ class Event(models.Model): created_at = models.DateTimeField(auto_now_add=True, editable=False) updated_at = models.DateTimeField(auto_now=True, editable=False) - def clean(self): - if self.date > timezone.now(): - raise ValidationError('Invalid date') - def __str__(self): return self.name -- GitLab