# HG changeset patch # User cavaliet # Date 1397744665 -7200 # Node ID 8a49bdcc0ca11819450d9bbb80df019d616072ac # Parent 6fd374cf92669d66232ff3f23f8db572188d767d v0.5.3 correct migration diff -r 6fd374cf9266 -r 8a49bdcc0ca1 src/spel/__init__.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]))) diff -r 6fd374cf9266 -r 8a49bdcc0ca1 src/spel/migrations/0001_correct_video_path.py --- 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."