From e22235249e0396facb9a79c2cff8e8755a84bce3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 7 May 2015 09:56:36 +0200 Subject: [PATCH] fix item path --- .../commands/telemeta-import-collections-from-crem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telemeta/management/commands/telemeta-import-collections-from-crem.py b/telemeta/management/commands/telemeta-import-collections-from-crem.py index 78e7e463..ccd0e1b2 100644 --- a/telemeta/management/commands/telemeta-import-collections-from-crem.py +++ b/telemeta/management/commands/telemeta-import-collections-from-crem.py @@ -93,7 +93,7 @@ class Command(BaseCommand): f.close() else: print "file in MEDIA_ROOT, linking..." - path = media[len(self.media_root)+1:] + path = media[len(self.media_root):] if not self.dry_run: item.file = path item.save() -- 2.39.5