]> git.parisson.com Git - telemeta.git/commitdiff
bugfix
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 28 Jun 2016 10:31:45 +0000 (12:31 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 28 Jun 2016 10:31:45 +0000 (12:31 +0200)
telemeta/management/commands/telemeta-create-boilerplate.py

index cccb86fc37011602ca83fdfe966f65069e1daab0..4a9a07c9e41d77986a7166a6508dea81cd5f4c57 100644 (file)
@@ -27,11 +27,11 @@ class Command(BaseCommand):
     def handle(self, *args, **options):
         collections = MediaCollection.objects.filter(code=self.code)
         if collections:
-            collection = collection[0]
+            collection = collections[0]
         else:
             collection = MediaCollection(title=self.code, code=self.code, public_access='full')
             collection.save()
-            
+
         selection, c = Selection.objects.get_or_create(title='Tests')
 
         if c: