]> git.parisson.com Git - teleforma.git/commitdiff
fix field parsing
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 19 Dec 2013 17:19:20 +0000 (18:19 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 19 Dec 2013 17:19:20 +0000 (18:19 +0100)
teleforma/management/commands/teleforma-copy-seminars.py

index 754915f698838330b66168c72391744e4896bd32..ed500418823182a62595130deea58bb37e90e4a0 100644 (file)
@@ -40,6 +40,8 @@ class Command(BaseCommand):
                         if type(field.rel.to) == Document or type(field.rel.to) == Media:
                             source = getattr(seminar, field.attname)
                             destination = getattr(clone, field.attname)
+                            print source, destination
+                            
                             for item in source.all():
                                 print item
                                 item.period = from_period