Commit 48388274 authored by Myriam Begel's avatar Myriam Begel

Correction du modèle

parent 841f62c4
......@@ -13,7 +13,7 @@ class Publication(models.Model):
return self.titre
def recent(self):
return (self.date >= timezone.now() - datetime.timedelta(months=6))
return (timezone.now() >= self.date >= timezone.now() - datetime.timedelta(months=6))
choices = (
('perso', 'Contact personel'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment