add migration and update version number and requirements V02.08.11
authorcavaliet
Fri, 19 Apr 2013 16:41:39 +0200
changeset 81 8a667bb50299
parent 80 c4f70599bd01
child 82 e374ebf493b3
add migration and update version number and requirements
src/ldtplatform/__init__.py
src/ldtplatform/migrations/0003_recalculate_contentstat.py
src/ldtplatform/settings.py
src/requirement.txt
--- a/src/ldtplatform/__init__.py	Mon Apr 15 16:37:09 2013 +0200
+++ b/src/ldtplatform/__init__.py	Fri Apr 19 16:41:39 2013 +0200
@@ -1,4 +1,4 @@
-VERSION = (2, 8, 10, "final", 0)
+VERSION = (2, 8, 11, "final", 0)
 
 VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldtplatform/migrations/0003_recalculate_contentstat.py	Fri Apr 19 16:41:39 2013 +0200
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import DataMigration
+from django.db import models
+from django.core.management import call_command
+
+class Migration(DataMigration):
+
+    def forwards(self, orm):
+        # Call the command from ldt_utils app
+        call_command('statannotation')
+
+    def backwards(self, orm):
+        "Write your backwards methods here."
+
+    models = {
+        
+    }
+
+    complete_apps = ['ldtplatform']
+    symmetrical = True
--- a/src/ldtplatform/settings.py	Mon Apr 15 16:37:09 2013 +0200
+++ b/src/ldtplatform/settings.py	Fri Apr 19 16:41:39 2013 +0200
@@ -187,6 +187,7 @@
 LDT_MAX_CONTENTS_PER_PAGE = 10
 LDT_MAX_PROJECTS_PER_PAGE = 10
 LDT_FRONT_MEDIA_PER_PAGE = 9
+LDT_FRONT_PROJECTS_PER_PAGE = 12
 
 OAUTH_PROVIDER_KEY_SIZE = 32
 OAUTH_PROVIDER_SECRET_SIZE = 32
--- a/src/requirement.txt	Mon Apr 15 16:37:09 2013 +0200
+++ b/src/requirement.txt	Fri Apr 19 16:41:39 2013 +0200
@@ -1,2 +1,2 @@
-ldt (==1.46.6)
+ldt (==1.46.7)
 hashcut (==0.9)