Commits

Bertrand Bordage committed 9c375a5

Corrects the order of images.

Comments (0)

Files changed (1)

cmsplugin_nivoslider/models.py

     @property
     def images(self):
         if not hasattr(self, '__images'):
-            self.__images = [f for f in self.album.files.order_by('file')
-                               if f.file_type == 'Image']
+            files = self.album.files.order_by('name')
+            self.__images = [f for f in files if f.file_type == 'Image']
         return self.__images
 
     search_fields = ('title', 'album__title',)