From ecce2b8093849f89ce6415c5fe49004305b0b3ba Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 19 Dec 2013 16:21:45 +0100 Subject: [PATCH] fix no expiry_date --- teleforma/management/commands/teleforma-copy-seminars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-copy-seminars.py b/teleforma/management/commands/teleforma-copy-seminars.py index 8f249372..c3a03d14 100644 --- a/teleforma/management/commands/teleforma-copy-seminars.py +++ b/teleforma/management/commands/teleforma-copy-seminars.py @@ -25,7 +25,7 @@ class Command(BaseCommand): from_year = int(args[-2]) for seminar in Seminar.objects.all(): - if seminar.expiry_date.year: + if seminar.expiry_date: if seminar.expiry_date.year == from_year: questions = seminar.question.all() seminar.pk = None -- 2.39.5