From: Guillaume Pellerin Date: Thu, 19 Dec 2013 17:19:20 +0000 (+0100) Subject: fix field parsing X-Git-Tag: 2.8.1-pro~408 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5aa76cb54aef7b66c6c8596b8c78e1d004e58158;p=teleforma.git fix field parsing --- diff --git a/teleforma/management/commands/teleforma-copy-seminars.py b/teleforma/management/commands/teleforma-copy-seminars.py index 754915f6..ed500418 100644 --- a/teleforma/management/commands/teleforma-copy-seminars.py +++ b/teleforma/management/commands/teleforma-copy-seminars.py @@ -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