v0.5.3 correct migration V00.05.03
authorcavaliet
Thu, 17 Apr 2014 16:24:25 +0200
changeset 72 8a49bdcc0ca1
parent 71 6fd374cf9266
child 73 4778ee1a122f
v0.5.3 correct migration
src/spel/__init__.py
src/spel/migrations/0001_correct_video_path.py
--- a/src/spel/__init__.py	Thu Apr 17 15:56:24 2014 +0200
+++ b/src/spel/__init__.py	Thu Apr 17 16:24:25 2014 +0200
@@ -1,4 +1,4 @@
-VERSION = (0, 5, 2, "final", 0)
+VERSION = (0, 5, 3, "final", 0)
 
 VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
 
--- a/src/spel/migrations/0001_correct_video_path.py	Thu Apr 17 15:56:24 2014 +0200
+++ b/src/spel/migrations/0001_correct_video_path.py	Thu Apr 17 16:24:25 2014 +0200
@@ -3,6 +3,7 @@
 from south.db import db
 from south.v2 import DataMigration
 from django.db import models
+from ldt.ldt_utils.models import Content
 
 class Migration(DataMigration):
 
@@ -15,6 +16,8 @@
                 media.src = "/data/theatre/" + media.src[:-4] + "_web.mp4"
             media.videopath = ""
             media.save()
+        for content in Content.objects.all():
+            content.sync_iri_file()
 
     def backwards(self, orm):
         "Write your backwards methods here."