diff --git a/src/stats/models.py b/src/stats/models.py index 0eb5c700ef669deadbe1b4d516622c1cdfcf4413..d8ea90905d2b9a04257e5e581920fd99dc9b073b 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