]> git.parisson.com Git - teleforma.git/commitdiff
media dir inside department
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 29 Jan 2014 13:23:10 +0000 (14:23 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 29 Jan 2014 13:23:10 +0000 (14:23 +0100)
teleforma/management/commands/teleforma-import-conferences.py

index f1c7d5c36a3e1142af077db4f4a8495e7c4a6cf6..829b18ddc79026376a52450e273e9d25e3c5d20d 100644 (file)
@@ -59,7 +59,7 @@ class Command(BaseCommand):
         organization = Organization.objects.get(name=organization_name)
         department = Department.objects.get(name=department_name,
                                             organization=organization)
-        self.media_dir = settings.MEDIA_ROOT + organization.name
+        self.media_dir = settings.MEDIA_ROOT + organization.name + os.sep + department_name
         file_list = []
         all_conferences = Conference.objects.all()
         i = 1