]> git.parisson.com Git - telemeta.git/commitdiff
fix bad codes
authoryomguy <yomguy@parisson.com>
Wed, 21 Dec 2011 13:48:39 +0000 (14:48 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 21 Dec 2011 13:48:39 +0000 (14:48 +0100)
telemeta/management/commands/telemeta-test-import.py

index a242d87b60560bfeaa8fc99b0555104f8f09be90..b2d8ede6f7e20a44b1b4a66d6b68544b29748a4d 100644 (file)
@@ -39,6 +39,7 @@ class Command(BaseCommand):
 
         for url in self.urls:
             code = url.split('/')[-1]
+            code = code.replace(' ', '_')
             items = MediaItem.objects.filter(code=code)
             if not items:
                 item = MediaItem(collection=collection, code=code, title=code)