From 0ea3c05f22cdb20f19cfc5923d27fd7909202b99 Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Thu, 7 May 2015 16:17:36 +0200 Subject: [PATCH] Fix synch between thumbs and title --- jm2l/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jm2l/models.py b/jm2l/models.py index de4aa46..1683c80 100644 --- a/jm2l/models.py +++ b/jm2l/models.py @@ -114,8 +114,8 @@ class JM2L_Year(Base): @property def DocLinks(self): from .upload import MediaPath - return zip( MediaPath().get_list('presse', self.year_uid, 'Other'), - MediaPath().get_thumb('presse', self.year_uid, 'Other') + return zip( sorted(MediaPath().get_list('presse', self.year_uid, 'Other')), + sorted(MediaPath().get_thumb('presse', self.year_uid, 'Other')) ) class User(Base): @@ -282,8 +282,8 @@ class Tiers(Base): @property def DocLinks(self): from .upload import MediaPath - return zip( MediaPath().get_list('tiers', self.uid, 'Other'), - MediaPath().get_thumb('tiers', self.uid, 'Other') + return zip( sorted( MediaPath().get_list('tiers', self.uid, 'Other') ), + sorted( MediaPath().get_thumb('tiers', self.uid, 'Other') ) ) @property