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

index b1758d6d9db5321351b4c48f81c0bf4e7726dc14..9cc486f5f9a47e6d73a0ebc7cc1b4557da367217 100644 (file)
@@ -55,5 +55,5 @@ class Command(BaseCommand):
                     for question in seminar.question.all():
                         question_clone = question.clone()
                         question_clone.seminar = clone
-                        question.save()
-                        print ("question cloned and assigned:", question)
+                        question_clone.save()
+                        print ("question cloned and assigned:", question_clone)