]> git.parisson.com Git - telemeta.git/commitdiff
Modify _by_change_time property from CoreQuerySet class, and
authordavid <>
Thu, 29 Oct 2009 17:30:41 +0000 (17:30 +0000)
committerdavid <>
Thu, 29 Oct 2009 17:30:41 +0000 (17:30 +0000)
telemeta/models/cremquery.py

index e5ecd1634866d759f89c8c1950b85e0fb1bf1d18..fb67630e2d1108c3aa7ae0d77042e5434c5d84b1 100644 (file)
@@ -64,7 +64,7 @@ class CoreQuerySet(QuerySet):
         if until_time:
             where.append("time <= '%s'" % until_time.strftime('%Y-%m-%d %H:%M:%S'))
         return self.extra(
-            where = ["id IN (SELECT DISTINCT element_id FROM telemeta_revision WHERE %s)" % " AND ".join(where)]);
+            where = ["id IN (SELECT DISTINCT element_id FROM revisions WHERE %s)" % " AND ".join(where)]);
 
 class CoreManager(Manager):
     "Base class for all models managers"
@@ -182,7 +182,7 @@ class MediaCollectionManager(CoreManager):
         from django.db import connection
         cursor = connection.cursor()
 
-        cursor.execute("SELECT continent, etat FROM telemeta_item "
+        cursor.execute("SELECT continent, etat FROM media_items "
             "GROUP BY continent, etat ORDER BY REPLACE(etat, '\"', '')");
         return cursor.fetchall()