From: Guillaume Pellerin Date: Thu, 18 Dec 2014 08:48:26 +0000 (+0100) Subject: fix date X-Git-Tag: 2.8.1-pro~282^2~19 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=da9e2e00ca33e3e7f6ef705146e99e28cef9cae3;p=teleforma.git fix date --- diff --git a/teleforma/management/commands/teleforma-copy-seminars.py b/teleforma/management/commands/teleforma-copy-seminars.py index 0f2dcb71..ea92b193 100644 --- a/teleforma/management/commands/teleforma-copy-seminars.py +++ b/teleforma/management/commands/teleforma-copy-seminars.py @@ -32,7 +32,7 @@ class Command(BaseCommand): for seminar in Seminar.objects.all(): if seminar.expiry_date: - if seminar.expiry_date.date == expiry_date.date \ + if seminar.expiry_date.date() == expiry_date.date() \ or (seminar.period == from_period and seminar.code in self.more): seminar.period = from_period seminar.save()