]> git.parisson.com Git - teleforma.git/commitdiff
fix media order
authoryomguy <yomguy@parisson.com>
Mon, 28 Jan 2013 15:19:36 +0000 (16:19 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 28 Jan 2013 15:19:36 +0000 (16:19 +0100)
teleforma/models/core.py

index 2e50ce9e34093726b1eddda1a820ffafffc02d4a..6406157a34acf7ba0cbe2eec4657e141d688c789 100755 (executable)
@@ -449,7 +449,7 @@ class Media(MediaBase):
 
     class Meta(MetaCore):
         db_table = app_label + '_' + 'media'
-        ordering = ['-date_modified']
+        ordering = ['rank']
 
 
 class Conference(Displayable):
@@ -482,7 +482,7 @@ class Conference(Displayable):
     notes = generic.GenericRelation(Note)
 
     objects = DisplayableManager()
-    
+
     @property
     def slug_streaming(self):
         slug = '-'.join([self.course.department.slug,