]> git.parisson.com Git - teleforma.git/commitdiff
no media copy when cloning seminar
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 19 Dec 2013 20:48:57 +0000 (21:48 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 19 Dec 2013 20:48:57 +0000 (21:48 +0100)
teleforma/management/commands/teleforma-copy-seminars.py

index 9cc486f5f9a47e6d73a0ebc7cc1b4557da367217..d0e2d71c9883e72fc645193b1fd9db7f5c5c8c19 100644 (file)
@@ -37,7 +37,7 @@ class Command(BaseCommand):
                     print ('seminar dates updated', clone)
 
                     for field in seminar._meta.many_to_many:
-                        if field.rel.to == Document or field.rel.to == Media:
+                        if field.rel.to == Document:
                             source = getattr(seminar, field.attname)
                             destination = getattr(clone, field.attname)