]> git.parisson.com Git - teleforma.git/commitdiff
fix site
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Dec 2014 14:02:10 +0000 (15:02 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Dec 2014 14:02:10 +0000 (15:02 +0100)
teleforma/management/commands/teleforma-copy-seminars.py

index bf4b7d3051da23c832088ae246f7906cfa2aa361..a3adb6fe9f0b0c7037638c16bb0b3ad959edaf25 100644 (file)
@@ -21,13 +21,14 @@ class Command(BaseCommand):
     args = ['from_year to_year']
     language_code = 'fr_FR'
     more = ['deontologie_1', 'deontologie_2', 'commercial_2', 'Contrats_4', 'PAC_5']
+    site = Site.objects.get_current()
 
     def handle(self, *args, **kwargs):
         to_year = int(args[-1])
         from_year = int(args[-2])
         to_period, c = Period.objects.get_or_create(name=str(to_year))
         from_period, c = Period.objects.get_or_create(name=str(from_year))
-        site = Site.objects.get_current()
+
 
         for seminar in Seminar.objects.all():
             if seminar.expiry_date: