Projet

Général

Profil

0001-manage-order-announces-chronologically-13877.patch

Frédéric Péters, 06 novembre 2016 17:22

Télécharger (838 octets)

Voir les différences:

Subject: [PATCH] manage: order announces chronologically (#13877)

 corbo/views.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
corbo/views.py
132 132

  
133 133
    def get_context_data(self, **kwargs):
134 134
        context = super(CategoryView, self).get_context_data(**kwargs)
135
        context['announces'] = self.object.announce_set.all()
135
        context['announces'] = self.object.announce_set.all().order_by(
136
                '-publication_time', '-ctime')
136 137
        return context
137 138

  
138 139

  
139
-