]> git.parisson.com Git - teleforma.git/commitdiff
fix date
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 18 Dec 2014 08:48:26 +0000 (09:48 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 18 Dec 2014 08:48:26 +0000 (09:48 +0100)
teleforma/management/commands/teleforma-copy-seminars.py

index 0f2dcb710efa7fb53466a84e95b45e5b1d94cfbf..ea92b19327e9d3316d21ceacbc56af87971e8fb3 100644 (file)
@@ -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()